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
Solved! Go to Solution.
Did you try:
var thisUn1 = scope.findFormFieldWithId(scope.allFormFields, 'label1').value.id;
or
var thisUn1 = scope.findFormFieldWithId(scope.allFormFields, 'label1').value.name;
Thanks,
Greg
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
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.