Expand my Community achievements bar.

How to set an mandatory field to non-mandatory.

Avatar

Former Community Member

Hi,

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.

Thanks,

Laura

2 Replies

Avatar

Level 10

You can try:

     field.mandatory = "disabled";

Thanks

Srini