Unable to remove the dropdown custom button

I am able to use frm.remove_custom_button(''); to hide the custom button, but I am not able to hide the dropdown custom button using frm.remove_custom_button('ABC');

I dont want to hide the sub item inside the ABC, I want to hide the entire button ABC

Any ideas?

image

Hi @SinChan4896,

If have two options in ABC then first remove both options and then check.

Example:

cur_frm.remove_custom_button('ABC 1', 'ABC');
cur_frm.remove_custom_button('ABC 2', 'ABC');

Then reload and check it.
Thank You!