03-09-2017 01:16 PM
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!
BR,
Mandy
03-09-2017 01:59 PM
Did you try:
var thisUn1 = scope.findFormFieldWithId(scope.allFormFields, 'label1').value.id;
or
var thisUn1 = scope.findFormFieldWithId(scope.allFormFields, 'label1').value.name;
Thanks,
Greg
03-09-2017 01:59 PM
03-09-2017 11:05 PM
Thanks for your kindly help.
The code is working greatly!
But I wonder to know how can I know the information of ".value.id" and ".value.name" for the other components?
Could you let me know where I can find the reference? thanks a lot!
BR,
Mandy
03-10-2017 10:50 AM
Explore our Alfresco products with the links below. Use labels to filter content by product module.