Not much more to say… it just doesn’t work.
In case I’m being a bit dumb, here is the 2 sample codes I used.
sc_menu_delete(item_user_4);
sc_menu_delete(item_12);
The correct macro to use in the responsive menu to remove items is “sc_appmenu_remove_item”.
The sc_menu_delete macro only works on the old menu.
Hope this helps.
Best regards!
Danilo
Thanks for the input, but that didn’t work either. The code I used was…
sc_appmenu_remove_item("V2app_menu", "item_user_4");
sc_appmenu_remove_item("V2app_menu", "item_12");
In addition, according to the help, this macro indicates:
The sc_appmenu_remove_item()
macro removes a menu item dynamically from a menu previously created with sc_appmenu_create()
. Wouldnt this indicate its not supposed to work???
AND the sc_menu_delete(item_user_4); macro help indicates it works on a responsive menu.
But I do note that the first sentence of this scope does NOT include responsive!
Any other suggestions?
Thanks for the feedback and for providing more details.
In this case, you’re not using a 100% dynamic menu, right?
In fact, the macro I mentioned only works for the dynamic menu, so you need to use the sc_appmenu_create macro first.
However, the sc_menu_delete macro is working fine on the responsive menu. The test was performed on the latest version (9.12.022). See the sequence of images below:
If there is any specific detail in your application that should be taken into account to reproduce the problem, feel free to share it with us.
Best regards!
Theres nothing particularly special about my menu. It does have the user menu and other features enabled, which your example doesn’t, but nothing out of the ordinary.
It may be a combination so here are some pictures:
PS… I’ve tried the code in onload and in onscriptinit without success. There are no console or other errors.