Skip Navigation

[Resolved] Post fields only saved w/ 'Display the value of this field from the database'

This support ticket is created 5 years, 1 month ago. 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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 4 replies, has 2 voices.

Last updated by nicholasG-2 5 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#1412417

CRITICAL! Users can't edit data!

I am trying to: Save Post Fields using a frontend form, and display on the frontend.

Link to a page where the issue can be seen: hidden link

I expected to see: Under 'Regions' heading, "NYC Area" and "Tri-State Area (NY/NJ/CT)". When using this Post Form, checkbox data seems to be saved and retrieved, but the data is not saved to the actual post itself, and is therefore not accessible via Views/Content Templates, or the Dashboard (Post Edit screen).

Instead, I got: Only "Tri-State Area (NY/NJ/CT)" <--- example. All checkbox fields in this group behave similarly

#1413035

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Thank you for sharing the all required information.

Do you mean that when you create a new entry using the Toolset post form the checkboxes fields are saved but in the admin backend, the checkboxes are shown as unchecked even though its actually checked (selected) from frontend form? If yes - Can you please share the URL where you added the post form?

#1413517

Hi Minesh,

Thanks for your response!

Whether creating a new entry or editing an old one, on the form, actually, the checkboxes DO work -- so when I go to edit an entry, I do see the proper data. But the data somehow doesn't get saved to the actual item, so when we view the entry on the frontend, it's not there, and if we view the data from the entry's edit screen on the Dashboard (not using the CRED form), the data is not there. So clearly the data keys are being saved, but something has changed that's made the data not save properly, and that's what I'm struggling with.

To be clear, some fields DO save -- it seems limited to one field group, the 'Maestra Professional Data' group. Weirdly, when an item has a custom value set for "Show one of these two values:," the field DOES display on the frontend. So it seems to me a key/value store problem.

An example of the form: hidden link (must be admin)

This has been working for a long time with no issues, so this is a new thing.

Thank you again!

#1414773

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Our Devs shared a hotfix that should help you to fix the issue.

Can you please try to follow the instructions given with the following link and try to resolve your issue:
=> https://toolset.com/errata/toolset-form-doesnt-save-checkboxes-field-values/

Please let me know if this hotfix helps you to fix the issue you reported.

#1415057

Thanks for this hotfix -- confirming this is now working for me.

Many thanks for your support, as always!