Read-Only Field Values Not Persisting After Refresh in Constellation UI

@RAHULK0923 I was thinking about this overnight. It is expected that read only fields can’t be updated via form refresh settings, yes. I do outline this in Form refresh settings: The artist formally known as “on change, run data transform..”

However, two additional solutions I can add to the mix:

  1. Calculations - these are read-only but the declare expression is what updates the values on screen, you could use that to show these fields.
    • This is my preferred solution (including the ones I previously gave in this thread)
  2. Editable state - read-only when has value: I haven’t tested this, but from what I know of the DX API and Constellation this should work but worth testing:
    1. Configure the field as editable
    2. Use form refresh to set value
    3. Conditionally read only:
      • Mark as disabled when it has a value (when rule, so it triggers a server side interaction and gets the value from the server) OR
      • conditionally show editable/read only versions based on the value