gutenberg-forms
gutenberg-forms copied to clipboard
Form label updates are not reflected properly on entries list
- Create a form. It has default form label "Gutenberg Form".
- Submit an entry.
- Rename the form label to something different like "Contact".
- Submit an entry.
- Go to Entries list.
- You've go 2 entries with 2 different form labels (Channel): "Gutenberg Form", "Contact".
- In filter dropdown for channels above you've got one item: "Gutenberg Form".
Since this is the same form, the channel name at both entries (and filter as well) should be one and named "Contact" (the current form label).
Hi @macemmek
That is the expected behavior. The channels are listed as the form labels. If you late change a form label the entries will reflect the changed form label (channel) in the entries as the old entries have already been recorded, we are not manipulating the entries with the changes user made to the form later.
How do you expect this to work?
OK, I take your arguments. But there's an inconsistency with filter then. I see different (recorded) channels on the list and a channel name, in the filter, which does not actually exist now - as I've edited it ("Gutenberg Form").
I understand that the filter is related to the form instance and it is right but the way it shows now is confusing.
I thought rather that form label is something like form title, visual form name for the admin, user-friendly identificator. I didn't think about it like a piece of data that is stored within the entry and cannot be changed.
EDIT:
In other words: renamed form label does not appear in the channels filter. It makes sense, because the form instances should be there but then the filter should not be named "All Channels" but "All Forms" and display form titles while the recorded "channels" should have their own filter. Because the same form can have multiple "channels" recorded in its entries if only we change the label.
HI @macemmek
Yeah, I know this is a bit confusing. This is because we have the ability to create forms directly from any CPT or create forms via Forms CPT (like all other form builders do).
I will think about the entries management overall (later).
I will keep this issue open.