I have a scenario in a traditional UI (non-Constellation) application where a First Name property has an Action Set configured with On Change → Post Value, Refresh This Section, and Refresh Other Section.
The same First Name property is used multiple times within the same section under different visibility conditions. In one scenario, the field displays helper text, while in another scenario, the helper text is not required.
When I enter a value in the First Name field, the value is not being retained after the section refresh. The value is initially captured, but it gets cleared when the section reloads.
What could be causing this behavior, and how can I troubleshoot or resolve the issue?
Hi Kurma,
There could be many reasons for that. I believe that On Change will trigger only when you move away from the field (lose focus on it).
What I would suggest you to do to debug this issue is
Enable tracer in Dev Studio (even if you are in a portal with Dev Studio open, it should work).
Type something in your First Name field.
Click anywhere on the screen outside First Name field.
Check the tracer logs to see if your First Name property is being reset or deleted by one of the actions (such as Data Transform or activity invocation)
You can search Tracer logs by Ctrl+F and search for First Name property reference (for example .FirstName)
We do not have any Data Transform or Activity configured. I checked the tracer, and the value is retained until the section reloads. It appears that the value is being cleared at the “Action Begin” step when the section refresh/reload is triggered.
@Bhumireddy
I tried the suggested approach, and the value is now being retained after the section refresh. However, I’m seeing another issue.
When I enter a value in the First Name field and then clear it, the old value is still being retained instead of being removed. In other words, the property is not getting updated to a blank value after the field is cleared.
As a workaround, I created two separate properties, FirstNameHT and FirstNameNHT, and configured them to update the original FirstName property on change. For these additional properties, the “Do not save” checkbox is enabled in the Advanced tab.
This approach is currently working on my end. However, if anyone has found a more appropriate solution or root cause, please share your findings.