We wanted to make a field visible only if a Domain was activated. Managed to do it with:
eval: frappe.boot.active_domains.indexOf("Agriculture") >= 0
Thanks to @tmatteson for help on this!
We wanted to make a field visible only if a Domain was activated. Managed to do it with:
eval: frappe.boot.active_domains.indexOf("Agriculture") >= 0
Thanks to @tmatteson for help on this!
eval: frappe.boot.active_domains.includes('Agriculture')
Thanks for the syntax correction, farmer still learning here
Oh, that’s much easier to understand and feels much less like a hack.