Hi…i want to cheak(tick) 1 check if i check(tick) another check field. in my case i have 1 check field is return so if i tick it my another checkbox gets tick or checked. Is it possible to do that. please help.
if i do is return as checked. i want is cash checkbox to be checked.
Hi @SonalD,
Please apply custom/client script.
frappe.ui.form.on('Sales Invoice', { is_return: function(frm) { if (frm.doc.is_return == 1) { frm.set_value('is_cash_or_non_trade_discount', 1); } else { frm.set_value('is_cash_or_non_trade_discount', 0); } } });
Please set your field name according. Then reload and check it.
Thank You!
Thank You NCP. It is working.