SOLVED

Re: Registering for an event in the past - neat solution?

Go to solution
Nicholas_Manojl
Level 9

Registering for an event in the past - neat solution?

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Nicholas_Manojl
Level 9

Re: Registering for an event in the past - neat 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>

View solution in original post

2 REPLIES 2
Kenny_Elkington
Marketo Employee

Re: Registering for an event in the past - neat solution?

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
Level 9

Re: Registering for an event in the past - neat 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>