#1, create confirmurl custom field in Timeline -> Settings -> Registration -> Add Custom Form Field. In Field Name type in "confirmurl" and select custom forms for the form type.
#2, Get updated form from Code -> Form Registration Code.
#3, Edit form registration code for confirmurl, set type="hidden" and value="https://YOUR_CONFIRMATION_PAGE"
#4, repeat step 3 to a second form, that will be used with your second reg page/confirmation page.
#5, Implement new form/s into your registration pages.
#5, Create a new page in your page editor, Copy in both your Confirmation pages header script and the code at bottom of this page, insert as a script into the main body. (make sure to customize the DEFAULT_URL_HERE and provide a default). This page is SOLELY used as a script page, to assist AEvent in the redirect .
#6, Back in AEvent, Timeline -> Settings -> Advanced -> Page URLs -> Confirmation Page, place address of newly created script page as the confirmation page.
This effectively tells AEvent ON REGISTRATION which page is the desired confirmation page (because of the confirmurl value we've added). Then when AEvent redirects to your confirmation page (which is now your script holding page) the correct dynamic confirmation page is provided from the registration details, and the registrant to sent to the desired confirmation page.
IF USING HTML / ClickFunnels / Leadpages / Converti:
<div id="ae_confirm" style="display:none;">{{!subscriber-confirmurl}}</div>
<script type="text/javascript">
$(document).ready(function() {
var urlParams = new URLSearchParams(window.location.search);
var uid = urlParams.get('r');
var flagcount = 0;
var noaff = true;
function checkFlag() {
var checkit = jQuery("#ae_confirm").text();
console.log(checkit);
noaff = checkit.includes('{{');
if (noaff == true && flagcount < 30) {
window.setTimeout(checkFlag, 500);
flagcount++;
console.log("checking for confirm page url ...");
} else {
if (noaff) {
console.log("error no ae_confirm url use default url");
var ae_confirm = "https://YOUR_CONFIRMATION_PAGE"
setTimeout(function() {
window.location.replace(ae_confirm);
}, 100);
} else {
var ae_confirm = checkit + '?r=' + uid;
setTimeout(function() {
window.location.replace(ae_confirm);
}, 100);
console.log("redirect");
}
}
}
checkFlag();
});
</script>
<div class="hidethat"> </div>
IF USING Wordpress:
<div id="ae_confirm" style="display:none;">{{!subscriber-confirmurl}}</div>
<script type="text/javascript">
jQuery(document).ready(function($){
var urlParams = new URLSearchParams(window.location.search);
var uid = urlParams.get('r');
var flagcount = 0;
var noaff = true;
function checkFlag() {
var checkit = jQuery("#ae_confirm").text();
console.log(checkit);
noaff = checkit.includes('{{');
if (noaff == true && flagcount < 30) {
window.setTimeout(checkFlag, 500);
flagcount++;
console.log("checking for confirm page url ...");
} else {
if (noaff) {
console.log("error no ae_confirm url use default url");
var ae_confirm = "https://YOUR_CONFIRMATION_PAGE"
setTimeout(function() {
window.location.replace(ae_confirm);
}, 100);
} else {
var ae_confirm = checkit + '?r=' + uid;
setTimeout(function() {
window.location.replace(ae_confirm);
}, 100);
console.log("redirect");
}
}
}
checkFlag();
});
</script>
<div class="hidethat"> </div>