[Gelöst] (!)CRED forms get reset if changes were made to custom fields of related post
This support ticket is created vor 1 Jahr, 10 Monaten. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.
Hi guys.
Very bad bug.
It happened already several times with my site.
Can't be 100% sure of the reasons why, but looks like after I edit custom fields of the post,
post forms and user forms (that have generic fields linked to a custom post) are getting reset to the default state. As result, all customization of the form gets lost. Even JS code added in the corresponding field below the editor gets reset.
Link to a page where the issue can be seen: versteckter Link
Hi Luo.
For example, if you edit Custom fields for Health organizations then the corresponding User form could get reset. The reset looks like if you would turn off Expert mode and turn it on again.
Please provide the steps with detail URLs:
1) Where can I edit Custom fields for Health organizations?
In the single "Health organizations" post? versteckter Link
2) Where can I see the result: "corresponding User form could get reset"
Hi Luo.
Sorry for the late reply.
Regarding your questions:
1) Where can I edit Custom fields for Health organizations?
-- you can find them here: versteckter Link
2) Where can I see the result: "corresponding User form could get reset"
-- the form on the back-end is here: versteckter Link
-- and the form on the front is here: versteckter Link
I tried to achieve the effect of the reset form on purpose but not luck. I am still not sure what exactly could cause. The reset.
However, It did happen twice with this form. Before the reset I was actively editing custom fields and I was adding new ones (both on fields themselves and forms). I also was testing form. The reset normally was discovered after some time, not immediately.
Plugins are set to update automatically by cPanel. Maybe plugin update could do this... Just my guess.
I tried to reproduce the problem you describe on my own test, both on post forms (for posts that have a custom field group assigned) and for user forms (where there are custom user fields applicable to the same role), but I couldn't in either case.
I don't see how the form could be reset by making a change when editing custom fields, I don't think there are any Forms hooks triggered by the action of updating a custom field group.
But I've created a clean sandbox site with Toolset plugins where I invite you to demonstrate the problem, which you can log into with this link: versteckter Link
If we can reproduce the problem then we can investigate why it occurs.
Hi Nigel, sorry for the late replay.
I was trying to replicate the issue. And it happened couple more times again.
This time I was able to detect and repeat the reset.
Here is how to do that with my website:
1. Close the form editor dropdown window (see screenshot 1)
2. Do some changes for example with Email notifications
3. Save changes with a form editor dropdown window closed
4. Form gets reset as it happens when you toggle of Expert mode
Sorry, I didn't try to setup forms on your site to replicate this after I found the issue but let me know if its needed