Showing a field in a DocType based on value in Domain Settings (Agriculture)

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')

:wink:

1 Like

Thanks for the syntax correction, farmer still learning here :smile:

Oh, that’s much easier to understand and feels much less like a hack.