質問

I have added a dropdown with list feature in my Suitelet, which has customer names in it.

form.addField('fieldX', 'select', 'Select Field','customer');

How do I get value selected by user, in a variable?

役に立ちましたか?

解決 2

Do you want to get the value after the user has selected it? Then you will need to create an undeployed field changed client script. After creating the script record, you will need to attach it to your suitelet using form.setScript().

If you want to get the value when the user submits the suitelet, you can do that using request.getParameter('fieldX').

他のヒント

This returns the ID of the selected option:

nlapiGetFieldValue('fieldX')

This returns the text of the selected option:

nlapiGetFieldText('fieldX')
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top