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
You can use N/ui/message to show error messages at the top of your suitelet in client script
battk
05/15/2019, 12:40 AM
you can also do something similar with Form.addPageInitMessage
t
Tim Pilgrim
05/15/2019, 1:20 AM
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
battk
05/15/2019, 1:21 AM
i dont think any of NetSuite's messages appear in subtabs, so you won't get anything native looking
battk
05/15/2019, 1:21 AM
the only other native netsuite option is N/ui/dialog
t
Tim Pilgrim
05/15/2019, 1:28 AM
thanks battk you came to the same conclusion I did.