Announcement

Collapse
No announcement yet.

Registration form - Required Selection of Customer Groups on form

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Registration form - Required Selection of Customer Groups on form

    I have spun my wheels trying to get the "Please Select an Account Type" to be a required field on my registration form. I have four schools in this one site & they all have different shipping & payment options that are set by Customer Groups. Site is set to require account prior to purchase. HOWEVER this does not work if the "Account type" is not required. I've tried changing the code in both below red sections but I'm a novice & everything I've tried does not work (this is default code). Help???

    Also is it possible on the form to change that section from 'Account Type' to be "School" & pull-down to say "Please Select Your School" as well as delete the "Retail Account" option?

    <script type="text/javascript" src="state_countryjs.asp"></script>
    <script type="text/javascript" src="assets/templates/common/js/address_validator.js"></script>
    <script type="text/javascript">
    useAddressValidator = "[useAddressValidator]";
    var emailReq = 0;
    var passwordReq = 0;
    </script>

    <section id="registration0">
    <form action="register.asp?action=register" method="post" name="registrationform" id="registrationform">
    <input type="hidden" name="view_cart" value="[view_cart]" />
    <input type="hidden" name="catalogid" value="[catalogid]" />
    <h1 class="page_headers">[registration_header-new-registration]</h1>
    <!--START: CATEGORY_HEADER-->
    <div class="category-header" id="registrationHeader">[CONTENT]</div>
    <!--END: CATEGORY_HEADER-->
    <div class="group-message">[group_message]</div>
    <div class="accountRegForm pad10 boxShadow">
    <div class="header">
    <h3>[registration_Header-createnewaccount]</h3>
    </div>
    <div class="loginField">
    <label for="email">[CustomerInfo_email]:</label>
    <input type="text" size="25" name="email" maxlength="50" tabindex="1" class="txtBoxStyle" />
    <!--START: emailrequired-->
    <!--START: req_email-->
    <script type="text/javascript">emailReq = 1;</script>
    <div class="error-img"><img src="assets/templates/common/images/error2.gif" width="12" height="12" alt="" /></div>
    <!--END: req_email-->
    <!--END: emailrequired-->
    <div class="clear"></div>
    </div>
    <div class="loginField">
    <label for="pass">[CustomerInfo_password]:</label>
    <input type="password" size="12" name="pass" maxlength="16" tabindex="2" class="txtBoxStyle" [CallFunctionVerifyStrongPass] />
    <!--START: passwordrequired-->
    <!--START: req_pass-->
    <script type="text/javascript">passwordReq = 1;</script>
    <div class="error-img"><img src="assets/templates/common/images/error2.gif" width="12" height="12" alt="" /></div>
    <!--END: req_pass-->
    <!--END: passwordrequired-->
    <div class="clear"></div>
    </div>
    <!--START: StrongPasswordBar-->
    <div class="loginField">
    <div class="strong-pass-bar" style="background-image: linear-gradient(to left, #86e01e 0%, #f63a0f 100%);">
    <div id="divStrong"></div>
    </div>
    <div class="clear"></div>
    </div>
    <!--END: StrongPasswordBar-->
    <!--START: PasswordMSG-->
    <div class="PasswordMSG">
    <p>[CustomerInfo_password_policy]</p>
    </div>
    <!--END: PasswordMSG-->
    <!--START: account_type-->
    <div class="loginField">
    <label for="discount">[registration_account-type]:</label>
    <select name="discount" tabindex="3" class="txtBoxStyle">
    [reg_groupdropdown]
    </select>
    <div class="clear"></div>
    </div>
    <!--END: account_type-->
    </div>
    <!--START: required_fields-->
    <div class="error">ERROR: PLEASE CHECK THE REQUIRED FIELDS BELOW!</div>
    <!--END: required_fields-->
    <div class="accountRegForm pad10 boxShadow">
    <div class="header">
    <h3>[registration_Header-information]</h3>
    </div>
    ....
Working...
X