Value initiated in form refresh Not Persisting on local action on change/edit of fields

We have a local action where based on a radio button field, 3 views are initiated. Each of the view has a corresponding pre DT on the form refresh of the flow action to set some values on the view and to set a property that is passed as parameter to the source of one of the dropdown field in the view.

This is loading when the view is initiated and the dropdown values appear. But when a value is selected in the dropdown or any field is edited on the UI, the view refreshes and the data set on pre dt in form refresh are removed leading to the dropdown parameter to be blank.

Please suggest on alternatives to achieve this.

We have noticed the Pre DT is not triggered while performing the Edit, however the Pre DT is triggered during New item. We have used declarative logic to handle for Edits.

After discussing today, your form looked like this.

You are using pyDefault and Form Refresh Settings to both set values for your form (initial state) and update details on the form (when details change).

For me, they appear the different API calls appear to be clashing.

My gut instinct would be to use a paramaterised data page for your picklist list to pull the data down, instead of using pyDefault to push the parameter to it.

However, given your data pages is data-, I’d need to test to see if this is possible to pull from data- the work- properties. I’ll revert back.

I’m sure it is. But would love others opinions on what they have tried here that works.