Make Child table field mandatory on condition

Dear Team, How to make a child table field mandatory based on condition?

Hi,

Try following lines in your js file or in your Custom Script.
replace child_table_name and child_table_fieldname with your data.

 cur_frm.fields_dict.child_table_name.grid.toggle_reqd
    ("child_table_fieldname", condition)
3 Likes

Hi @Ram_Gopal_Rao,

You have to write Custom script for that. Please refer below code from item.