I make custom field but it`s Depends On

i make custom field but it`s Depends On
(eval:doc. committee==“الامن الصناعي”)
if i Writing anything and if ( Depends On ) change
i need field empty !!

Why don’t you try hiding and clearing the field via Custom Script

  • frm.toggle_display(fieldname, frm.doc.committee==“الامن الصناعي”)
  • frm.fieldname = “” when you want to empty the field

halloo mr hrwx

frm.toggle_display(attributes_safety, frm.doc.committee==“الامن الصناعي”)
frm.attributes_safety = “الامن الصناعي”

not working

Pls try this
cur_frm.toggle_display(“attribute_safety”,true);
if(frm.doc.committee == “الامن الصناعي”){
cur_frm.doc.attribute_safety = ’ ';
}

halloo Mr Jecintha

cur_frm.toggle_display(“attribute_safety”,true);
if(frm.doc.committee == “الامن الصناعي”){
cur_frm.doc.attribute_safety = ’ ';
}

sorry not working