I have come across a strange issue while working on my touch UI dialog for workflow, please find details below:
Requirements: I have a dropdown with values A & B, there are following field updates i need to perform in dialog based on value selection:
1- show/hide certain fields on dropdown selection
2- make certain optional fields (select & textarea) as mandatory on selection of value B.
3- there is a multifield (textfield) for email list. on selection of B add a default email address to mutlifeld programatically.
So I achieved item 1 and 2, however while working of item 3 I noticed below issue
Issue: when an item is added to multifield through 'Add' button, show/hide changes and making certain fields are required are undone and fields revert to original state though retaining the value. So if I hide a field and make a field as mandatory when I add an item in multifield , hidden field shows up and mandatory field becomes optional.
I would highly appreciate any help or guidance on the issue.