Home › Forums › Feature Requests › Allow Field Groups to override local JSON storage during form output
Hi ACF team, Thanks for the great plugin.
When a plugin provides an ACF field group with JSON, the UI breaks a WP user’s expectations because they can still edit the field group through the ACF UI, but their changes are not shown during form output.
This creates a lot of confusion for my intended workflow. I would expect that after giving a client a custom plugin, they can edit the fields themselves to improve the field labels, descriptions, etc. Then I would re-export their changes and update the plugin. If the client breaks the field group terribly they can trash it and re-sync the JSON, so that the JSON serves as a backup to the database field settings.
I’ve created a patch for the second solution as a gist.
This patch adds a new setting per field_groups called “db_overrides_local_output”. When enabled, the field group will be shown as it exists in the database, as opposed to being overridden by the JSON file. This patch supports backwards compatibility needing to be enabled per field group for it to have an effect.
Here is a screenshot of the new settings field on a field group’s edit page.
Thoughts / feedback / a better way?
Unrelated side note: I just lost 45 minutes typing out this feature request with much more description. I scrolled up to re-read it, and your site header appear right as I clicked. poof all gone.
Thanks for the post.
Would you mind opening a support ticket instead and copying over this information?
This will make you feature request get to the plugin author faster.
Please create the support request at [email protected]
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We’re reaching out to our multilingual users to ask for help in translating ACF 6.1. Help make sure the latest features are available in your language here: https://t.co/TkEc2Exd6U— Advanced Custom Fields (@wp_acf) May 22, 2023
© 2023 Advanced Custom Fields.