Hey guys, I’m trying to figure out how to filter the options that a user can select based on a field in the document. Anyone done this?
frappe.ui.form.on("Purchase Receipt", {
onload: function(frm) {
if( frm.doc.class_a) {
[FILTER WORKFLOW STATE TO ONLY ALLOW QA INSPECTION]
} else {
[FILTER WORKFLOW STATE TO ONLY ALLOW PD INSPECTION]
}
}
});