Expand my Community achievements bar.

Join us in celebrating the outstanding achievement of our AEM Community Member of the Year!
SOLVED

What is the use of Form "Hidden Fields"

Avatar

Level 3

I am trying to use "Hidden Field" in AEM Forms , but when I drop the hidden fields in to my forms area this field is not visible . My understanding is during design of Page I should be able to see the hidden fields and set name, id and values but there is no option I can find. 

Please advice how to use hidden fields , a detail step and use will help.

Thanks in advance.

1 Accepted Solution

Avatar

Correct answer by
Level 9

Yes, this is html form hidden field, it won't be visible to user. Usually this field is needed if you want to perform some action after submitting form or some hidden data is required in post processing.

View solution in original post

5 Replies

Avatar

Correct answer by
Level 9

Yes, this is html form hidden field, it won't be visible to user. Usually this field is needed if you want to perform some action after submitting form or some hidden data is required in post processing.

Avatar

Level 3

Do you have sample steps to explain in detail that will really help.

Avatar

Level 3

thanks for your response , it that mean for author hidden fields should not be available as they will not able to do any thing on this fields. It is more for the developer only. Is that correct understanding.

Avatar

Level 10

At time of designing the page you should be able to see hidden field, otherwise how can you configure. Refer attached video. https://vimeo.com/110889211

Avatar

Level 4

In AEM Forms, Hidden Fields are used to store data that users cannot see or interact with, but can be submitted with the form. These are commonly used for tracking or passing data (e.g., form metadata, user session data, or specific values required for form processing).

To use Hidden Fields in AEM Forms:

  1. Drag and Drop: In the form editor, drag a "Hidden Field" from the form components palette to your form.
  2. Configure Hidden Field: You won’t see it on the form visually, but you can configure it by selecting the field. Set its Name, ID, and Value.
  3. Set Default Value: The hidden field can have a default value or dynamically set its value via form logic or scripting.
  4. Submission: When the form is submitted, the hidden field’s value is sent along with other form data.

It doesn't appear in the user interface but still submits with the form when the user submits it.