We have lots of events, which we offer registration for new leads.
If I'm not quick enough, the registration form can stay live on the web after the event.
Does anyone have a neat solution they use? I'm imagining a process where the page holding the form changes after a certain date.
Solved! Go to Solution.
thanks! That thread gave me an idea - this seems to work: (ps. I don't know anything about coding or web standards or whatever, so this might be a complete hack).
It checks today's date against the token date {{my.registerationClose}} and then redirects accordingly.
<script>
var today = new Date();
var registrationClose = new Date ('{{my.registrationClose}}');
if(today > registrationClose) {
window.location.replace('http://site.com/registrationclosed.html');
};
</script>
I came up with a javascript solution here some time ago: Re: Anyway to automatically "turn off" a form after a certain time?
thanks! That thread gave me an idea - this seems to work: (ps. I don't know anything about coding or web standards or whatever, so this might be a complete hack).
It checks today's date against the token date {{my.registerationClose}} and then redirects accordingly.
<script>
var today = new Date();
var registrationClose = new Date ('{{my.registrationClose}}');
if(today > registrationClose) {
window.location.replace('http://site.com/registrationclosed.html');
};
</script>