1. Home
  2. Forms
  3. Eloqua Forms
  4. Using Hidden Fields in Eloqua Forms

Using Hidden Fields in Eloqua Forms

What are hidden fields?

Hidden fields are form fields which are not visible to visitors. Since visitors cannot see or enter information in hidden fields, these fields are used to gather additional information and associate it with that form submission.
Examples: You can use hidden fields to collect:
  • The name of the Content Track on which a visitor submits the form
  • The name or URL of the content asset on which a visitor submits a form
Gathering this information is useful for understanding where the form event occurred in the Content Track!
For a full list of values that you can pass through a query string, visit our Nook article here.

How to use hidden fields

Here are the step-by-step instructions on how to pass information to a hidden field on a form in Eloqua.
  1. Create a field merge in Eloqua for the information you are trying to gather.
    • Navigate to Assets.
    • Select Components, and then Field Merge.
    • Select New. image
  2. Complete the details to create your field merge.
    • Name: Name the field merge related to the information you are collecting.
    • Default Value: This can be left blank or filled in if you would like a default value in that field.
    • Merge From: Query string will pull in values from the URL.
    • Query String Key: This is the value that will be looked for in the URL to populate in the form. Create something relevant and make note of the value. You will need this in a later step.
      For a full list of values that you can pass through a query string, visit our nook article here.
  3. In Eloqua, add the hidden field with the query string parameter to your form.
    • Navigate to Assets.
    • Select Forms.
    • Choose a form that has already been created or create a new one. image
  4. Add the hidden field to your form.
    • Select Custom Fields.
    • Select Hidden Field.
  5. Add the query string parameter to your hidden field on your form.
    • Select your hidden field.
    • Navigate to the Pre-Population Options.
    • Select Use a Field Merge.
    • Select the name of the field merge you created.
    • Save your form. image
  6. Add your form processing steps.
    • Select Processing.
    • Add a processing step.
    • Select Redirect to Web Page. image
  7. Redirect the form to an Eloqua landing page that includes the PathFactory Capture Tag.
    Click here for more information on this step.
  8. Place your Eloqua form on an Eloqua landing page.
    • Navigate to Assets.
    • Select Landing Pages.
    • Create a new landing page.
    • Create a Basic Landing Page. image
  9. Place your form on the landing page.
    • Select Form from the menu on the left side of the screen.
    • Search for the form name of the form you just created.
    • Drag the form name onto the landing page.
    • Save. image
  10. Once you Confirm and Save your form, copy the landing page URL at the top of the page. Use this URL to make an External URL form in PathFactory. image
  11. In PathFactory, manually add a query string to the end of the form’s URL. This will cause the hidden field to pick up the desired value. In this example we are going to capture the name of the Content Track that the form was filled out on. This would be done as follows: https://eloqua.exampleformurl.com?track_name={{experience.name)}}
    The query string parameter value, in this case track_name, needs to be exactly what you set in step 2 as your query string key.
    If you are using other query string values (for example, UTM Parameters) do not add a second question mark. Simply separate each query string value with an ampersand (&). It doesn’t matter whether the UTM Parameters are listed before or after this hidden field query. Example: https://pardot.exampleformurl.com?track_name={{experience.name}}&utm_source=twitter&utm_campaign=spring2018
Updated on August 26, 2022

Was this article helpful?

Need Support?
Can't find the answer you're looking for? Don't worry we're here to help!