Make an Adaptive Form Field required in JavaScript
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