How To Set Up ActiveProspect Consent Tracking On A Form & Survey

Consent tracking is essential for ensuring compliance with data protection regulations, such as GDPR and CCPA. It provides a transparent record of user consent, helping businesses demonstrate that they have obtained explicit permission to collect and use personal data. This not only protects the organization from legal issues but also builds trust with users by respecting their privacy rights.

To Set up ActiveProspect Consent Tracking on a Form:

  1. Build your form as you normally would

  2. Create a Custom Short Text Field called 'xxTrustedFormCertUrl' > drag the field into your form above the submit button

  1. Save the form > Click 'Integrate Form' button > Click 'Link' tab > Copy form url and open in another Google Chrome tab (you will come back to this tab after step 4)

  1. Drag an HTML field into the form below the button > select the HTML field > click 'Edit Script' button > copy/paste the Custom Script below (don't save yet)


Custom Script:

info icon
<script type="text/javascript">
(function() {
var field = 'xxTrustedFormCertUrl';
var provideReferrer = false;
var invertFieldSensitivity = false;
var tf = document.createElement('script');
tf.type = 'text/javascript'; tf.async = true;
tf.src = 'http' + ('https:' == document.location.protocol ? 's' : '') +
'://api.trustedform.com/trustedform.js?provide_referrer=' + escape(provideReferrer) + '&field=' +
escape(field) + '&l='+new Date().getTime()+Math.random() + '&invert_field_sensitivity=' + invertFieldSensitivity;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tf, s); }
)();
function trustedFormCertUrlCallback(certificateUrl) {
document.getElementsByName('customFieldId')[0].value = certificateUrl;
document.getElementsByName('customFieldId')[0].dispatchEvent(new Event("input"));
}
</script>
<noscript>
<img src="http://api.trustedform.com/ns.gif" />
</noscript>

  • Go back to the tab you opened in Step 3 > right-click the page and select 'Inspect' > choose the mouse pointer > click the xxTrustedFormCertUrl field > copy its ID


  1. Go back to the form/Edit Script modal and replace FORMID in both instances with the ID you copied > Save

  1. Copy the Custom CSS below > Open the Styles Tab > paste into the Custom CSS field > change the number in parenthesis to correspond with the position of the xxTrustedFormCertUrl field in your form.


    Custom CSS For Forms:

    info icon
    .form-field-wrapper:nth-child(n) {
    display: none;
    }

  1. Edit Custom CSS and Save form.

    info icon
    From:

    .form-field-wrapper:nth-child(n) {
    display: none;
    }

    To:

    .form-field-wrapper:nth-child(5) {
    display: none;
    }

Please Note:

info icon
SlideNumber is a placeholder. It should be replaced with actual survey slide number. 
n is a placeholder for field which customer wants to hide.
Please place xxTrustedFormCertUrl above all the hidden field in a slide/form.

Example:
If xxTrustedFormCertUrl field is on 2nd slide and 4th element.
Did this answer your question?
😞
😐
😁