Currently I am maintaining three different versions
frappe.ui.Dialog to show some fields and to hide other or to make some fields mandatory depending on status. Like for example if the
0 then show certain fields and make them mandatory but if
1 then show the fields as
Because of this my client Script is growing very long and becoming tough to manage it.
Instead can I add some kind of condition at field definition level to remove certain fields?