Hiding Custom Button

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

That worked for me.Thanks a lot.