I have an Adaptive Form and I'd like to make a given field required via JavaScript. I have tried the following:
field.mandatory = "error"
field.mandatory = "true"
field.mandatory = true
field.required = "error"
field.required = true
I have also tried all of the above together with field.validationsDisabled = false and validationsDisabled = "false".
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
I added a field and submit button in an adaptive form.
On field initialize event in Code editor, below works for me when I submitted the form without entering any data.
this.mandatory="true";
I added a field and submit button in an adaptive form.
On field initialize event in Code editor, below works for me when I submitted the form without entering any data.
this.mandatory="true";
This unfortunately does not work for me. When I submit the form, it's not respecting this change. I've tried mandatory="true" on the outer div element surrounding the form component as well as on the radio button group itself.
Took radio group also, and it's working, see attached