I want to have something visual on the UI when a r...
# suitescript
p
I want to have something visual on the UI when a record is saved, when FieldX = '1'. NetSuite gives the green success bar as standard, but I want to add a Warning bar too. A quick Google has left me confused with N/ui/message & N/ui/dialog - can you help?
t
You can go ahead with N/ui/message for a bar, N/ui/dialogs will produce popups.
b
Dialog is client script popup, message is server script toast
p
Will N/ui/message still work in View mode?
t
Hello @battk do you mean messages are rendered by server, and dialogs by browser, because what I can see messages are only supported in Client Scripts ?
p
I presume server...
b
messages can be added serverside, which will work on view
you can also use the message clientside, but it would have to be added from client script added in the beforeLoad if you wanted it on view
m
@PlanetJupiter - I can give you some sample code for that. Direct-message me if interested.
t
Thanks @battk , I didn't know that.