Someone posted this trick of adding &ifrmcntnr...
# suitescript
e
Someone posted this trick of adding &ifrmcntnr=T to the URL which removes the netsuite navigation stuff from the Suitelet form but the unintended consequence is that none of the "pretty" N/ui/message client side messages will display like it does when the navigation is turned off.
b
if you really want that message, then you want to run
Copy code
NS.jQuery('div#simplepage-body').prepend('<div id="div__alert"></div>');
before you do the message stuff
normal suitelet forms match
div#body
while iframe containers match
div#simplepage-body
the message module doesnt have logic to handle the iframe container version
e
Thanks @battk I will try that. This was not using an iframe container though. This was just loading the Suitelet with that in the URL querystring.
b
ifrmcntnr is iframe container without vowels
p
Or couldnt you just use options.hideNavBar when calling serverWidget.createForm which works with messages?
👍 1