Make a field required
Posted by Hubbaroo - Jan 29 ’14 at 05:35
Can we make a field that is not required by the list required if a different field = Yes.
-
Dmitry KozlovAdminMember for: 8 years 7 months 25 days
Hello,
You can implement custom validation in onsubmit handler. Example:
fd.onsubmit(function() { if (fd.field('YesNo').value() && !fd.field('Title').value()) { alert('Please, fill in Title field.'); return false; } return true; });
In my sample, since YesNo checkbox is selected, Title field become required.
-
mimmerfallMemberMember for: 7 years 3 months 10 days
Would this go in the OnClick property of the save button?
-
Dmitry KozlovAdminMember for: 8 years 7 months 25 days
[#2]: No, you should put this code into JS-editor. Click JavaScript button on the ribbon of Forms Designer to open it.
Displaying 1 to 3 of 3 messages