nileshpsq
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Redirection not workingHi @galbaras
Even I saw the error
<div class="ajax-error">Unexpected token < in JSON at position 0</div>
and not sure from where it’s coming. The labels are there and it uses material guidelines.
Did you found anything suspicious in the JS in the console?
Thanks again for looking into this. I hope I can solve this and it’s hurting the business as well.
Forum: Plugins
In reply to: [Contact Form 7] Redirection not workingUnfortunately, it does not print anything in the console.
https://www.peppersquare.com/careers/job-openings/senior-storyteller-and-creative-writer/
This is the URL to test. Maybe you can do form submit and check?
Thanks for the help.
Forum: Plugins
In reply to: [Contact Form 7] Redirection not working@galbaras Any luck with the code. I appreciate you helping me with this.
Forum: Plugins
In reply to: [Contact Form 7] Redirection not workingCode added.
Forum: Plugins
In reply to: [Contact Form 7] Redirection not workingdocument.addEventListener( ‘wpcf7mailsent’, function( event ) {
a = document.getElementById(“job-opening-form-name”).value;
var url = ‘https://www.peppersquare.com/careers/thank-you/?’+a;
if ( ‘1281’ === event.detail.contactFormId ) {
location = url;
}
}, false);I used the above and still the same issue. The loading icon keeps running and the page does not go to thank you page.
Forum: Plugins
In reply to: [Contact Form 7] Redirection not workingYou mean just put like this?
a = document.getElementById(“job-opening-form-name”).value;
Forum: Plugins
In reply to: [Contact Form 7] Redirection not workingjob-opening-form-name is the field name of which is the Name field. This is passed in the url.
https://www.peppersquare.com/careers/thank-you/?’+aSo if you type https://www.peppersquare.com/careers/thank-you/?Gal you should see the thank you page with your name.
Forum: Plugins
In reply to: [Contact Form 7] Redirection not workingI was testing, therefore, the code is twice, as in one blog it said to put in header but that’s not working as well.I’ll remove that. Thje emails are sent while hitting submit but the page doesn’t redirect to the thank you page. So users hit submit button multiple times.
Not using in adblocker. A lot of my customers have also complained about this.
Forum: Plugins
In reply to: [Contact Form 7] Redirection not workingI’m using Divi theme plus other plugins. But this was working earlier and suddenly it has stopped.