https://netsuiteprofessionals.com logo
#suitescript
Title
# suitescript
p

prem kumar

04/20/2022, 10:08 AM
How to pass parameters from suitelet to client script
👍 1
m

mattdahse

04/20/2022, 1:29 PM
Depending on your implementation and your preference, you could do it by adding a hidden field to the form that the suitelet is presenting and then just reading it in the client script with
currentRecord
, or you could set a session variable with
runtime.getCurrentSession().set()
on the suitelet side, and pick it up in the pageInit entry point of the client with
runtime.getCurrentSession().get()
👍 1