Any gotchyas when attaching a client script UE?
I'm attaching the client script before load, but my pageInit code doesn't seem to be executed.
e
erictgrubaugh
05/15/2025, 6:44 PM
Client events will only fire in EDIT mode, not VIEW mode.
a
Alan Fitch
05/15/2025, 6:45 PM
I thought attaching with a UE would get around that.
Alan Fitch
05/15/2025, 6:45 PM
How else can I execute client side js on view?
e
erictgrubaugh
05/15/2025, 6:52 PM
You can still execute client side JS this way, but the native events only fire in EDIT mode.
a
Alan Fitch
05/15/2025, 6:53 PM
Ah I see, thanks for the clarification
✅ 1
t
Timothy Wong
05/17/2025, 3:46 PM
@Alan Fitch i've seen people use form.addfield and create an inlinehtml field, then use the default value to set some client side js code, i do recall seeing it used in some jquery stuff...
maybe window.nlapi is a possibility too?