Home › Forums › Feature Requests › Hidden field
I’m trying to send data which was sent through a URL parameter but save that data with the form submission via front end using the acf_form function.
I saw this post but I’m not sure exactly which solution still works properly with the latest ACF: https://support.advancedcustomfields.com/forums/topic/feature-request-hidden-field-type/
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?
Hi @rivage
I’m afraid there’s no option to do it yet. If you want, you can always set a hidden class, hide it using JavaScript, or add the HTML hidden fields using the “html_after_fields” or “html_before_fields” options. This page should give you more idea about it: https://www.advancedcustomfields.com/resources/acf_form/.
If you still want that feature, you can always open a new ticket so your request can be passed directly to the plugin author. You can open a new ticket here: https://support.advancedcustomfields.com/new-ticket.
I hope this makes sense 🙂
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
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
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.