HI all,
I have created a custom web form for student applicant. I have added program field there.
Also my program doctype is website generator. It has a ‘show in website’ field.
My aim is to show only programs which has show in website =1 value.
I have written code in registration.js webform file and is shown below:
frappe.ui.form.on("Registration", "onload", function(frm) {
cur_frm.set_query("program", function() {
return {
"filters": {
"show_in_website": 1
}
};
});
});
Can anyone help me to solve this issue?
Thank you