Need mandatory field when a condition

Hi Friends,
In Stock Reconciliation,there is “Purpose” in that we choose stock reconciliation i created a field named “type of reconciliation” should show. I need when “Purpose” = "Stock Reconcilation " it should mandatory on Type of Reconciliation unless not.
Thanks in Advance

@sathya_raj go back to the customization page . open the field you created , there is a box called 'mandatory depends on ’ type this eval:doc.purpose=="Stock Reconciliation"; . you can also use the ‘depends on’ so the field will actually disappear if purpose is not stock reconciliation.

1 Like