Hi, I am wondering can I not really get the value ...
# suitescript
t
Hi, I am wondering can I not really get the value of a parameter if I don't set preference on my script deployment parameters?
m
If you dont set the parameter then whatever the parameter is set to on the script deployment will be what you get from the getParameter function
t
Ok, I made some few changes. But my problem now is, it dont accept my json value as default value.
m
The preference is used to determine where the parameter should be set Company = One parameter is set for the whole company in general settings > Custom preferences User = Each user sets the parameter in their user settings No Preference = The parameter is set on the script deployment
👍 1
@Tyn Guardian if you want to set a text field to json the you need to JSON.stringify(myJsonObject)
When you read the field you then need to call the JSON.parse(myText) as well
t
alright... thanks @mayerlench big help!