frappe.ui.form.on(‘Interview’, {
refresh(frm) {
setTimeout(() => {
if (frm.doc.status === ‘No Show’){
frm.remove_custom_button(‘Submit Feedback’);
}
}, 200);
}
});
i used this client script for when interview status equal to ‘No Show’ then hide submit feedback button
now status is pending when i change status to ‘No Show’ and save the interview then again this submit feedback button show.
for that what we have to do
please suggest any solution