Hi,
We would like to hide ‘Get Items from BOM’ button in Material Request. This seems to be a custom button and am not sure how to hide it from the custom script.
cur_frm.set_df_property(“btnName”, “hidden”, true);
doesn’t work. Is it even possible?
Thanks
Krithi
Hi @krithi_ramani ,
Try, cur_frm.clear_custom_buttons();
But this method clear all custom button on the form.
Thanks, Rohit
3 Likes
That didn’t work either! Doesn’t clear any of the buttons.
Try This
frm.disable_(buttonName);
3 Likes
ppp
June 22, 2023, 5:22am
5
That worked for me.Thanks a lot.
This will work for sure to hide standard or any custom buttons.
frm.custom_buttons[“Button Name”].hide()
actually custom_buttons is object which stores button as key and value as its jquery object.