<@U3Y7UJ1C0> that looks like you're trying to add ...
# suitescript
j
@mg2017 that looks like you're trying to add a message to a user event script, messages can only be displayed using a client script
m
we can use the UserEventType on UE scripts but how do we check the event type in clientscript? basically i just want to display a message only when a record is created
j
in the pageinit there should be a value in the context called mode I think, it should be either create, copy or edit so in your case create I guess
m
yeah there's the context.mode - thanks for that. going through SS1 to SS2 - fun times! sorry for the obvious questions btw!