Home Forums Feature Requests Hidden field


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:

    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:

    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:

    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

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Hidden field’ is closed to new replies.