Hi All, I want to show a warning message on a rec...
# suitescript
a
Hi All, I want to show a warning message on a record (like type: message.type.WARNING) if the particular value in a List/Record field on the record is set to 'Yes'. I want this to happen before the record loads and work in both view and edit mode. Is this a UE Script or a Client Script? Can I please have some assistance with the if statement that filters whether the message shows or not? Appreciate the help :)
r
You can do this with a Client script and the
N/ui/message
module. https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_4497735093.html
e
Worth noting that Client Scripts don't run in VIEW mode
⬆️ 2
m
You can also do this in a beforeLoad user event script using the
Form.addPageInitMessage()
call.
☝🏻 1
☝️ 3
a
@erictgrubaugh Thanks for confirming this. I thought I was going crazy when it was only working in edit mode @Mike Robbins Thanks very much for this. Going to try it now 🙂
1