Hello,
I have been trying to make Tab Break Hide/Unhide on condition using JavaScript. However, my code is working for other field type, but not for Tab Break. Below is my code:
if (frm.doc.temp_id=="" || frm.doc.temp_id==null){
cur_frm.set_df_property('compliance_a_header', 'hidden',true);
cur_frm.set_df_property("tb_compliance_a","hidden",true);
} else {
cur_frm.set_df_property('compliance_a_header', 'hidden',false);
cur_frm.set_df_property("tb_compliance_a","hidden",false);
}
working: cur_frm.set_df_property('compliance_a_header', 'hidden',true);
not working: cur_frm.set_df_property("tb_compliance_a","hidden",true);
Regards
Mijan