How can I trigger a field change function when I'm...
# suitecommerce
s
How can I trigger a field change function when I'm creating a custom record from website using suitescript?
c
Hi @Surya Vardhan you can do that using scriptable cart. For this you need to enable scriptable cart and checkout checkbox in the website setup record.
s
But I'm creating a custom record in NetSuite.
s
Sounds like you should ask in #C29HQS63G
e
I have not tested this with a client script but I am pretty sure it works with a User Event Script, at least I have used with a Sales Order record:, try to select the web store in the context deployment, in that way your client script may be triggered from your website @Surya Vardhan
message has been deleted
s
Thanks you 🙂
k
I discovered through trial and error that “Web Store” context on the Script Deployment record of anclient script does apply to scriptable cart scripts. The context “Other” controls scriptable cart scripts.
e
Thanks @Keith Fetterman! I will take into account this for future customizations!
k
@eminero, I just noticed that I mistyped my response. What I meant to say is “Web Store” context does NOT APPLY to scriptable cart scripts. You need to use “Other” context. I need to do a better job of proof reading my posts. Grrr
e
haha great! thanks for the clarification! @Keith Fetterman