Is there no way to create an actual hidden form field built in yet then? I’m not sure exactly which one of these workarounds is best to use if I simply want to save some data with the submission (from frontend) via a hidden form field element.
Couldn’t there just be a checkbox called Hidden on every form field element you can add with ACF? Or perhaps an extra Hidden field you can add?
No idea if this will help others ( as it is an old topic ), but this is what I came up with to solve a similar issue. I needed a hidden value that would act as a slug to pull in other templates.
Added a radio button control which asked the user to display or not to display this specific section. “Show Section” held the value of the hidden slug I needed to pull and would also be defaulted to this value, otherwise without the value the section would be skipped entirely and not shown.
my-slug : Show Section
0 : Don’t Show Section
Viewing 3 posts - 1 through 3 (of 3 total)
The topic ‘Hidden field’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users