Join Slack
Powered by
<@U9LJMRYGM> I'm not sure how to access the field ...
# suitescript
j
jake
03/08/2018, 5:45 AM
@Saul
I'm not sure how to access the field object, do you have an example?
s
Saul
03/08/2018, 5:47 AM
which version of suitescript are you using? and also in what context (userevent/client/suitelet)?
j
jake
03/08/2018, 5:50 AM
2.0 version, and its in a userevent
s
Saul
03/08/2018, 5:52 AM
something like this should work var customField = scriptContext.form.getField({ id: 'customfield_id' }); then get
customField.type
Saul
03/08/2018, 5:54 AM
given that scriptContext is the parameter to the userevent entry point
j
jake
03/08/2018, 6:49 AM
it works, thanks
Open in Slack
Previous
Next