ashishsrii
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Redirect if User already has Sumbit the formHi Ramonesmania,
Sorry to disturb you again, I just want to know “How to set cookie for 30 minutes only?”
Means the user will be able to see form page after 30 minutes after filling form.
Forum: Plugins
In reply to: [Contact Form 7] Redirect if User already has Sumbit the formThanks Ramonesmania ??
Forum: Plugins
In reply to: [Contact Form 7] Redirect if User already has Sumbit the formThanks a lot ramonesmania. It worked like charm!!
You are great.I have some more forms in the website. Just want to know one more thing:
“Do I need to create a new theme page for all the forms which need this functionality?”Forum: Plugins
In reply to: [Contact Form 7] Redirect if User already has Sumbit the formHi ramonesmania,
I have removed the code as it was creating loop but my form is on the page https://realtycloud.ca/home/contact-2/ and the thanks page is https://realtycloud.ca/home/refer-earn-thanks/What should I do?
Forum: Plugins
In reply to: [Contact Form 7] Redirect if User already has Sumbit the formHi ramonesmania,
I added following code in my contact form Additional Setting:
on_sent_ok: “document.cookie =’cookiemname=allow;expires=Tue, 27 Sep 2015 10:40:41 UTC; path=/’; location = ‘https://mysite.com/thanks/’;”And following code in header file above </head> tag:
<script>
<!–// page to go to if cookie exists
go_to = “https://mysite.com/thanks/”;// number of days cookie lives for
num_days = 360;function readCookie(cookieName){
var start = document.cookie.indexOf(cookieName);
if (start == -1){
document.cookie = “cookiemname=yes; expires=” + ged(num_days);
} else {
window.location = go_to;
}
}readCookie(“cookiemname”);
// –>
</script>But when I fill the form, it goes in loop and tries opening thanks page again and again.
Can you please tell me where I am doing wrong? Thanks in advance!!