Hi All, Just wondering if anyone has got a better ...
# suitescript
t
Hi All, Just wondering if anyone has got a better way of displaying an error in the middle of a suitlet form. I dont like this as I'm calling NetSuite CSS directly. Thanks Tim
b
You can use N/ui/message to show error messages at the top of your suitelet in client script
you can also do something similar with Form.addPageInitMessage
t
thanks @battk, I knew about the N/ui/message functionality but had missed the Form.addPageInitMessage but unfortunately i need the message to appear in a subtab not at the top of the page.
b
i dont think any of NetSuite's messages appear in subtabs, so you won't get anything native looking
the only other native netsuite option is N/ui/dialog
t
thanks battk you came to the same conclusion I did.