- 21 Feb 2024
- 1 minute read
- Print
- DarkLight
- PDF
Redirect Event Registration Pages or Confirmation Pages
- Updated 21 Feb 2024
- 1 minute read
- Print
- DarkLight
- PDF
This article describes the process of setting up redirects from Slate-hosted event registration and confirmation pages.
Use-cases
You might set up a redirect if:
You want to create an event in Slate but want its registration form to be hosted outside of Slate
You want the event’s confirmation page to redirect to a different URL than the Slate-hosted confirmation page
Example: Joint travel event
Let’s say you’re participating in a joint travel event with another institution. That other institution hosts the registration form.
You’d want to list the event somewhere on your website, but your constituents would be registering for the event through the other institution’s site.
So, you would configure a redirect from your site to the other institution’s.
Redirecting from an event registration form
To immediately redirect a registrant to another page upon first accessing the form or event:
From the main navigation, click Events.
Select an event, or create a new event.
Click Edit.
Click Description.
Click Source. The HTML editor appears.
Copy one of the following codes.
This code performs an immediate redirect:
<script>FW.Navigate('HTTP://WWW.YOUR-URL.COM');</script>
This code performs a redirect with a slight delay, briefly displaying the original page:
<script type="text/javascript">/*<![CDATA[*/var delay = 5000; setTimeout(function(){ window.location = 'HTTP://WWW.YOUR-URL.COM'; }, delay);/*]]>*/</script>
Paste the code into the HTML editor.
Click Save.
Redirecting from an event confirmation page
To redirect the registrant to another page upon submitting an event registration:
From the main navigation, click Events.
Select an event, or create a new event.
Click Edit Communications.
Select the Confirmation Page communication.
Click Edit Message.
Click Source. The HTML editor appears.
Enter one of the following codes which will perform a browser redirect:Copy one of the following codes.
This code performs an immediate redirect:
<script>FW.Navigate('HTTP://WWW.YOUR-URL.COM');</script>
This code performs a redirect with a slight delay, briefly displaying the original page:
<script type="text/javascript">/*<![CDATA[*/var delay = 5000; setTimeout(function(){ window.location = 'HTTP://WWW.YOUR-URL.COM'; }, delay);/*]]>*/</script>
Paste the code into the HTML editor.
Click Save.
To reload a blank registration page after an event registration is complete:
<script type="text/javascript">var delay = 5000; setTimeout(function() { location.reload() }, delay);</script>