Hello - I have created a form that an end user can fill and submit. The form had 2 operations: Add or Remove.
If it its add operation: I have filter condition that display certain user list
If it is remove operation: I have a different filter condition that display another type of user list
The flow goes like Select Operation> Select Identity > Display account of the selected identity > Submit
Note: Each field will display only after the previous field value is selected
Now the problem is when user select the operation and select identity - it displays correct account. But if I want to change operation and select a different user the form does not refresh. It still show the account of the previous identity selected. I have to close the form and open the form to check for the identity. Refresh on change is also enabled. It works on my sandbox, but in test environment it doesnt refresh on change.
I have faced the similar issue before, What I would recommend to solve this issue is by using 2 user selection fields, one for add and one for remove and manage it based on operation selection.
Add the entry key = hidden and write logic based on the operation value selected and display field accordingly