Using Activiti designer, how can I get the value I am selecting in the dropdown. If i write ${id of the field} in the documentation i get the id of the option selected in the dropdown and not its value.
Ok, so the devil is always in the detail.
If you are using the sample activiti-explorer VAADIN application, the label of the dropdown is not saved to the process variable.
Obviously the easiest option would be to have the id and label match.
If that's not an option, then you can overload the org.activiti.engine.impl.form.DefaultFormHandler class.
Greg
Did you try the "name" attribute of the field? Likely this is what you are looking for.
Hi Greg Harley,
Yes, I tried with "name" attribute but it is showing error "Error in parsing"
Works for me, perhaps you can attach a test case.
Can you please send me the screenshot of how you did it.
Screenshot of form editor screen (notice I have attached to the form value changed event)
Here is the code to retrieve and alert the name and id for the selector:
var thisUn1 = scope.findFormFieldWithId(scope.allFormFields, 'selector').value;alert("name :" + thisUn1.name + "id:" + thisUn1.id);
Regards,