Registering for an event in the past - neat solution? | Community
Skip to main content
Nicholas_Manojl
New Participant
November 4, 2015
Solved

Registering for an event in the past - neat solution?

  • November 4, 2015
  • 1 reply
  • 1599 views

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.

Best answer by Nicholas_Manojl

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('site.com/registrationclosed.html');

};

</script>

1 reply

Kenny_Elkington
New Participant
November 5, 2015

I came up with a javascript solution here some time ago: Re: Anyway to automatically "turn off" a form after a certain time?

Nicholas_Manojl
Nicholas_ManojlAuthorAccepted solution
New Participant
November 5, 2015

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('site.com/registrationclosed.html');

};

</script>