What are you trying to do? (please be as specific as possible and include relevant screenshots, code snippets)
I am trying to update the initial value of the form text input through state. It gets updated in interactive mode but doesn’t work in preview or publish mode. Moreover, the value gets updated for a simple text input as well
I am not sure this is the exact same issue, but it seems related.
Building a multistep form, I am trying to get the value of two state variables of my page in a component, one in a text element ( $state.totalSteps ), and the other in a visibility condition ($state.formStepComponent1.formPropStepNumber).
I have set an inital value for both.
The value seems to be correctly set as I can display them in a text element on the page both in edit, preview or publish mode.
However, in preview and publish mode, it does not display in a text element inserted in a component’s slot, and it does not work in the visibility condition of the component using: