Home › Forums › Quform WordPress › insert 3rd party generated token into a hidden field › Reply To: insert 3rd party generated token into a hidden field
April 2, 2019 at 5:40 pm #28938
jusimedia
Participant
Hi Ally, this is working great – now I need to implement TrustedForm and am having some difficulty.
Here is the script which I’ve installed in Quform -> settings -> custom JS that creates a hidden field with the Trusted Form certificate.
(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); }
)();
When I view the source code, I see the hidden field and value being generated but its’ not being captured in the form entry.
How can I get the circled data in the above image to show up in the form entry?
- This reply was modified 5 years ago by jusimedia.