Registering for an event in the past - neat solution? | Adobe Higher Education
Skip to main content
Nicholas_Manojl
Level 8
November 4, 2015
Beantwortet

Registering for an event in the past - neat solution?

  • November 4, 2015
  • 1 Antwort
  • 1603 Ansichten

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.

Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von 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 Antwort

Kenny_Elkington
Adobe Employee
Adobe Employee
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_ManojlAutorAntwort
Level 8
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>