For instance, in the child table sales order items, I have two custom fields: one is a (datatype select ) field sampling field, and the other is item_group_type, which appears after selecting item_code. I would like such Manadtory depends on (js) in the doctype property in that when my item_group_type is “Services,” that type only, my sampling field is not required for other item groups, even though it should be. I write sytax in the sampling field, and it depends on (js)
eval:doc.item_group_type!= “Services” occasionally, but not always.
use a client script for this it will automatically make mandatory
i wrote client script for making field mandatory using grid.toggle_reqd this syntax but its not working properly as expected , i tried many times by using client script , should i achieve this using client script ?
can you explain your qustion i will proivde you the script
1 Like
thank you …problem wass resolved