Add hidden fields on all forms #2007
Replies: 5 comments 3 replies
-
|
Is there some sort of common use for what you're trying to do? For example, URL tracking parameters? If this is the case, we might be able to make some sort of "integration" that could be enabled (and enabled by default) for forms. 🙂 |
Beta Was this translation helpful? Give feedback.
-
|
Yep good guess! That's exactly what I'm doing. We store the actual values in session storage so that they persist across page loads (the landing page that a visitor arrives on won't necessarily have a form on it), so not as simple as populating inputs directly from the GET params. |
Beta Was this translation helpful? Give feedback.
-
|
Just letting you know that this was added in Freeform 5.12+ as an integration 🙂 https://docs.solspace.com/craft/freeform/v5/integrations/url-parameter-tracking/ |
Beta Was this translation helpful? Give feedback.
-
|
Hi @kjmartens, Thank you for introducing this great feature! Could you please clarify whether it can be used with GraphQL / Headless setup (by passing values in mutation) or via AJAX, without using twig template? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How can we help you?
Does anyone know of a way to add a collection of hidden fields to all forms? I know I can do it easily on a form-by-form basis, but when you have lots of forms this is impractical. I'm using a semi-manual rendering process, so outputting the actual hidden fields and their values into the form is straightforward - I need to get those values into the submissions without them necessarily existing in the FF form layout, or find a way to automate the insertion of those hidden fields as real FF fields.
Freeform Edition
Pro
Freeform Version
5.x
Craft Version
5.x
Beta Was this translation helpful? Give feedback.
All reactions