Creating a popup menu programmatically using popUpMenuEx
Copy link to clipboard
Copied
In creating a popup menu programatically using popUpMenuEx, for whatever reason I am unable to display submenu items for menu items 'Invoice Number' and 'Terms'. Initially I was hoping the javascript debugger would disclose an error but no such luck. While I really believe the solution to be relatively simple and staring me right in the face, after staring at the script for hours, I haven't been able to find the problem. As such I am hoping someone else can review the script (txt file attached hereto) and determine what's missing or out of place in the script. Thank you ahead of time.
Copy link to clipboard
Copied
It's "oSubMenu", not "oSubmenu". JS is case-sensitive, remember...
Copy link to clipboard
Copied
Thank u. I believe my eyes need a break given I just caught another typing syntax error where the script calls for two equal signs as opposed to one in an if statement that I didn't readily see until reviewing the script for the upteenth time. I guess I have to learn to occasionally take a break to rest my eyes. Moreover, I cannot tell you how many times I have typed ReadOnly instead of readonly (the correct spelling) which I believe is an exception to the rule. Unfortunately, when the JS Debugger displays no errors in addition to becoming starry eyed from looking at the same script for hours at a time, I begin to think that I am losing my mind. Thanks again for your response.

