In my form, I will need to set a field to mandatory in certian condition and then set it to not mandatory under different condition.
I know how to set it to mandatory: field.mandatory = "error"
Can someone let me know how to reset the field to not mandatory.
You can try:
field.mandatory = "disabled";
Thank you Srini,