Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using the Dynamic Text Extension plugin for Contact Form 7.

On my original form I created the following field [dynamictext hope id:hope]

Then in the Additional Settings section I added the following code:

on_sent_ok: "location.replace ('https://my.timedriver.com/Y5KXC?
firstname=document.getElementById('hope').value ')"

The “hope” was the code would transfer the info to the location it was sent to, however when I click submit, nothing is happening.

This code below works fine, but is not what I need.

on_sent_ok: "location.replace ('https://my.timedriver.com/Y5KXC?firstname=David ')"
share|improve this question
add comment

1 Answer

I think your quotes are misplaced. Try this :

on_sent_ok: "location.replace ('https://my.timedriver.com/Y5KXC?firstname='+document.getElementById('hope').value)"
share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.