AnsweredAssumed Answered

How to get selected value in dropdown field by javascript?

Question asked by sprincess on Mar 9, 2017
Latest reply on Mar 10, 2017 by gdharley

Hi all,


I can use javascript to change the dropdown field value:

scope.findFormFieldWithId(scope.allFormFields,'quantity').value=scope.findFormFieldWithId(scope.allFormFields, 'quantity').options[3];

I am finding the way to get the user selected value from the dropdown field, something should be like:

scope.findFormFieldWithId(scope.allFormFields, 'quantity').selectedValue;

how can I achieve this in the code?
Many thanks!