At first I thought only the forms that I copied where bugged, so I replaced them all with a fresh form. This was quite time consuming, but seemed to fix the issue.
Fast forward a few days, and these forms are again causing issues. Is anyone running into the same problem?
I've tried copy/pasting a few form components and each time the newly pasted form has no data field. initial data is present in the form state, but without data I cannot submit the form data with a query.
This seems to happen only when copy/pasting a form - new forms I create from "scratch" (by adding an empty form component) always include the data field by default, even when empty>.
Here is the state of one copy/pasted form component:
Check the form1 component state has a data property
Copy/paste the form1 component to create a form2 component
Check the form2 component state which does not have a data property
Here are screenshots from my reproduction in a brand new blank app:
Form 1 (original) includes data (visible in both the state tab and access as an example in the "disable" field of form settings):
Note: I'm showing the access of form.data inside the "Disable" setting of the form just for demonstration, I'm not actually trying to use the value in this spot.
I've looked at documentation and this forum but can't find anything related to this issue or to "adding" the data field back in. I am able to successfully trigger form submission with event handlers, but submitting the form has no impact on data property being created. If I'm missing something critical please let me know! I'd love to be able to copy these long forms instead of re-create them from scratch.
I'm seeing other posts describing a similar issue across the last few years - for me the form I was using is copied but it had been working for weeks and then recently stopped having the data attribute
Hi @Jeroen_Vermunt, thank you for flagging this. We were able to reproduce this issue on our end. It looks like when we duplicate a form component, the new one is missing the "data" property:
Original form:
Duplicate form:
We have created a bug report for this and we'll update you when it is fixed. Thank you for your feedback!
β
Hi @ John_Ramsey, our devs are currently working on a fix for this but we do not have a release date yet. I would appreciate if you could link us to the duplicates. I'm be happy to collect their +1s and merge them here so we can update everyone in one place.