Make email required on Secondary Registration Information?

Options

Is there a way to make the email address a required field on the Secondary Registration Information form? I don't see a way to customize this.

Tagged:

Comments

  • The only way to do so is with JavaScript. You could add something like the following under Customize Pages -> Secondary Registration Information:



    <script type="text/javascript">
    addOnLoadHandler(function(){
    var nextStepButton=document.getElementById('next_button');
    if(window.attachEvent){
    nextStepButton.attachEvent('onclick',checkSecondaryEmail);
    }
    else{
    nextStepButton.setAttribute('onclick','return checkSecondaryEmail();');
    }
    });
    function checkSecondaryEmail(){
    var secondaryEmail=document.getElementById('cons_email').value;
    if(secondaryEmail.indexOf('@')==-1||secondaryEmail.indexOf('.')==-1){
    alert('Please enter a valid email to continue.');
    return false;
    }
    }
    </script>
  • Noah Cooper:

    The only way to do so is with JavaScript. You could add something like the following under Customize Pages -> Secondary Registration Information:



    <script type="text/javascript">
    addOnLoadHandler(function(){
    var nextStepButton=document.getElementById('next_button');
    if(window.attachEvent){
    nextStepButton.attachEvent('onclick',checkSecondaryEmail);
    }
    else{
    nextStepButton.setAttribute('onclick','return checkSecondaryEmail();');
    }
    });
    function checkSecondaryEmail(){
    var secondaryEmail=document.getElementById('cons_email').value;
    if(secondaryEmail.indexOf('@')==-1||secondaryEmail.indexOf('.')==-1){
    alert('Please enter a valid email to continue.');
    return false;
    }
    }
    </script>

    A colleague just pointed out to me that the ability to make Email required was actually added to the product recently, so you could do the following in lieu of/in addition to the proposed JavaScript&colon;

    Go to Step 3: Select Event Options, and under Related Actions click Edit Advanced Options. Under Step b. Define Event Options, you'll see "

Categories