Does anyone know how to get field value of record ...
# suitescript
d
Does anyone know how to get field value of record or form in custom entry point function in client script 2.0? Thank you
s
What is your client script doing ?.You can use currentRecord module and the get the field value using currentRecord .getValue({fieldId: 'field_id1'});
d
No it's not working
My client script is having one custom entry point in that function I want to get one field value and send that value as parameters to suitelet which I calling from same function
s
where is your clientScript used in record or suitelet ?. You can use currentModule
d
My client script get called from Suitlet on clicking of custom button
s
Where is the custom button?
d
That field is on suitelet form
s
So on submit of the form you need the field value ?
you can using something like this context.currentRecord.getValue({fieldId:yourfieldId})
d
No no it's not submit button it's custom button
s
are you able to call the custom function on click of the button?
d
Yes I am able to call that
But I am not able to get the field value
s
Can you share your client code and field id you fetch
d
Sure