Refresh on Change issue

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.

Hi @MariamC

You can add postBack=“true” on field operation, and postBack=“true” dynamic=“true” on fields Identity and display Account.

So, whenever field value with postback changes, all the fields which are marked as dynamic will be re-evaluated.

@MariamC
Share your complete form xml once.

postBack is set to true

@MariamC You need to add dynamic=“true” too.

Have added dynamic=true, the problem is It works in my sandbox, but it doesnt work in Test environment

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

6 Likes

Thanks, I will try that

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.