Customizing a field to be mandatory

Hi,

Is it possible to make a field mandatory(label of the field in red like the mandatory function in customize form) after updating another field to a certain value?

1 Like

you can use this to make field mandatory, place it after your condition
frm.set_df_property("field_name", "reqd", 1);

2 Likes

…Or if you’re on V13, you can use “Mandatory Depends on” field in customize form.

3 Likes

Thanks a lot! This worked perfectly for me.

Unfortunately, I’m using V12.
Thanks for the reply anyways :smiley: