WordPress Form Generators and TrustedForm

Alex Wolfe
Alex Wolfe
  • Updated

Guide overview

Summary:
This guide explains how to integrate TrustedForm Certify into WordPress form generators so that a unique certificate URL is dynamically injected into the form as proof of consumer consent with every page load.

Learning objectives:

  • Understand the role of TrustedForm Certify in documenting lead consent.
  • Learn where and how to insert the TrustedForm Certify script in a WordPress environment.
  • Verify that the dynamically injected hidden field is present and submitted with form data.

Adding the TrustedForm script to your form page

Instructions:

  1. Our customers have some success by placing the TrustedForm script either in the same place allotted in WordPress for Google’s SEO tool, and also some success placing it using the WordPress Headers and Footers Scripts tool. These screen shots illustrate where to find those options in your WordPress dashboard.
  • WordPress for Google’s SEO tool:


  • WordPress Headers and Footers Scripts tool:


  1. Retrieve your TrustedForm Certify JavaScript snippet from the Certify tab in your TrustedForm account.
  2. Paste the snippet into the custom scripts area so it loads on the page hosting your form—ideally just before the closing tag.
  3. Important: Do not manually add any hidden certificate URL field in your form; the script automatically injects the field (typically named “xxTrustedFormCertUrl_0”) to avoid conflicts.

Expected result:
After the page loads, the browser’s runtime executes the TrustedForm Certify script and injects a hidden field named “xxTrustedFormCertUrl_0” into your form. Using your browser’s Developer Tools to inspect the DOM should reveal the field containing a URL that begins with “https://cert.trustedform.com/”.


Step 2. Verify the TrustedForm Certify integration

  • Goal: Confirm that the TrustedForm script properly injects and populates the hidden certificate URL field so that it is included with your form submissions.
  • Context: Since the field is dynamically injected at runtime, you need to use browser Developer Tools rather than “View Source” to verify its presence and functionality.

Instructions:

  1. Open your WordPress page with the form in a modern browser (such as Chrome, Firefox, or Safari).
  2. Right-click on the page and select “Inspect” to open the Developer Tools; locate the DOM section for your form.
  3. Search for the hidden input field named “xxTrustedFormCertUrl_0” and confirm that its value is a valid certificate URL beginning with “https://cert.trustedform.com/”.
  4. Submit a test form while monitoring network activity (using the “Network” tab) to verify that the submission payload includes the hidden field with its certificate URL.

Expected result:
You should see the hidden field “xxTrustedFormCertUrl_0” present in the form’s live DOM with a valid certificate URL. Additionally, when the form is submitted, the network request (or server-captured form data) must include this field, confirming that the TrustedForm integration is capturing lead consent automatically.


Validate your setup

To ensure the TrustedForm integration is working correctly:
• Open your WordPress form page and verify the presence of the “xxTrustedFormCertUrl_0” hidden field using the browser’s Inspect tool.
• Submit a test form and examine the network request or your server logs to confirm that the certificate URL is transmitted along with other form data.
• Optionally, copy the certificate URL from the submission and open it in a new browser tab to view the TrustedForm Certificate page.


Troubleshooting

Symptom / Error message Likely cause Resolution
Hidden field “xxTrustedFormCertUrl_0” not present The TrustedForm script isn’t loading correctly or a manual field exists causing conflict Verify the script is added in the custom header/footer area and remove any manually added certificate field
Certificate URL is empty or invalid The script may not have executed due to disabled JavaScript or interference from ad blockers Ensure JavaScript is enabled in the browser and disable any ad blockers; check the script placement
Form submission does not include the certificate URL The WordPress form generator may not capture runtime-injected fields Review your form plugin’s settings and consult documentation to allow dynamic fields within submissions

Frequently Asked Questions (FAQ)

Do I need to manually add a hidden field for the TrustedForm Certificate URL?

No. The TrustedForm Certify script automatically injects the hidden field (typically named “xxTrustedFormCertUrl_0”) during page load. Adding a manual field may interfere with the script’s functionality.

Where should I insert the TrustedForm Certify script in my WordPress site?

Insert the script using your site’s custom scripts feature—either within your SEO plugin’s header/footer settings or a dedicated Headers and Footers plugin. It is best placed just before the closing tag so that it loads on every page with your form.

How do I verify that the TrustedForm integration is working correctly?

Use your browser’s Developer Tools to inspect your form for the injected hidden field. Additionally, submit a test form and review the network request to ensure the certificate URL is included. You can also click the certificate URL to confirm it displays the TrustedForm Certificate page.

What should I do if the certificate URL field is not appearing or getting submitted?

First, check that the TrustedForm script is correctly added via your WordPress custom scripts settings and that JavaScript is enabled in your browser. Remove any manually created hidden fields with the same name, and review your form generator’s documentation to ensure it captures runtime-injected fields.


Glossary

Term Definition
TrustedForm Certify A TrustedForm product that uses a JavaScript snippet to automatically generate and inject a unique certificate URL into web forms.
Hidden field An input element that is not visible to users but is dynamically added by TrustedForm Certify to store the certificate URL.
WordPress form generator A WordPress plugin or tool used to create forms for capturing lead data without manual coding.
DOM (Document Object Model) The in‑memory structured representation of a webpage that browsers build to render and interact with page content.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.