I have an entry and whenever I save it, some of the fields is frm.toggle_enable(“some_field”,false); and I want that whenever I duplicate the entry I can set the fields to frm.toggle_enable(“some_field”,true); Where can I find the trigger for dupplicate?
Hi @johnskywalker! Try using fields (the one you need to hide when a certain condition is true) “depends on” feature with condition:
eval:doc.some_field == doc.some_other_field
Hope this helps!
Hello ! thanks I will try this one. For now what I did is I changed the property No Copy of the fields so that whenever I duplicate It won’t copy the fields that I don’t want to.