Choice Field
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
Do you mean to make a field to be required dynamically? If so, just add custom validation into onsubmit handler. Here is a sample:
Do you mean to make a field to be required dynamically? If so, just add custom validation into onsubmit handler. Here is a sample:
Code: Select all
fd.onsubmit(function() {
if (fd.field('Choice').value().length == 0) {
alert('Please, fill in the Choice field.');
return false;
}
return true;
});
-
- Information
-
Who is online
Users browsing this forum: No registered users and 4 guests