Drop-Down Additional Fields

Discussion in 'Customization & add-ons' started by vacc_webmaster, Oct 4, 2010.

  1. vacc_webmaster

    vacc_webmaster Member

    Joined:
    Jan 24, 2007
    Messages:
    51
    Has anyone been able to add an onclick event to drop-down further additional fields?

    For instance,
    On the sign-up page, if they click "Intrested To Add Profile to Public Site?", it will drop down further fields to fill out? There's like right now 15 fields on the sign-up page. Would be nice to clean it up by incorporating this idea.
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    I have a method that i teach my members so that extra fields get displayed upon certain products chosen.

    I use a javascript onclick command.

    David
  3. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Also this can be done using JQuery (signup page already have it included)
  4. vacc_webmaster

    vacc_webmaster Member

    Joined:
    Jan 24, 2007
    Messages:
    51
    How exactly would I do that?

    If I have a custom check box or drop down to ask a question:

    It would come up with
    -----------
    Additional Infomation
    ------------
    Label: Text Field
    Label: Drop Down Field
    Label: Radio Button
    Label: 6 line text description box

    Thanks
  5. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
  6. vacc_webmaster

    vacc_webmaster Member

    Joined:
    Jan 24, 2007
    Messages:
    51
    The example is a little different than amember.
    For one, the example doesn't have a value and amember doesn't have an ID, so copying the script and changing the values does not play nice.

    I've been working with it for some time with no success... just want to get a start on something!!! Desperate....

    Thanks for any further examples you could provide...

    This is the field...
    If value four is checked
    Code:
    <td>
        <input type=hidden name="supervision[]" value="" />
        <label><input type="checkbox" name="supervision[]" value="3" />No</label><br />
    <label><input type="checkbox" name="supervision[]" value="4" />Yes</label><br />
     
    </td>
    
    Display the following:
    Code:
    <td>
        <input type="text" id="f_license" name="[B]license[/B]" size="20"
                     value="" />
    </td>
    </tr><tr>
    <th><b>Degree's
    </b>
    </th>
    <td>
        <input type=hidden name="[B]degrees[/B][]" value="" />
        <label><input type="checkbox" name="degrees[]" value="LPC" checked="checked" />LPC</label><br />
    <label><input type="checkbox" name="degrees[]" value="LMFT" />LMFT</label><br />
    <label><input type="checkbox" name="degrees[]" value="MA" />MA</label><br />
    <label><input type="checkbox" name="degrees[]" value="Ed.D" />Ed.D</label><br />
    <label><input type="checkbox" name="degrees[]" value="NCC" />NCC</label><br />
    <label><input type="checkbox" name="degrees[]" value="PhD" />PhD</label><br />
    <label><input type="checkbox" name="degrees[]" value="CSAC" />CSAC</label><br />
    <label><input type="checkbox" name="degrees[]" value="Other" />Other</label><br />
     
    </td>
    </tr><tr>
    <th><b>Insurance Accepted
    </b>
    </th>
    <td>
        <select id="f_insurance" name="[B]insurance[/B][]" size="20" multiple
                >
        <option label="Aetna/US Healthcare" value="Aetna/US Healthcare">Aetna/US Healthcare</option>
    <option label="Alliance PPO" value="Alliance">Alliance PPO</option>
    <option label="Other" value="Other">Other</option>
     
        </select>
    </td>
    </tr><tr>
    <th><b>Condition Specialty
    </b>
    <br />
    <div class="small">Hold down the CTRL key as you click to select multiples.</div></th>
    <td>
        <select id="f_specialty" name="[B]specialty[/B][]" size="20" multiple
                >
        <option label="Abuse/Neglect" value="Abuse">Abuse/Neglect</option>
    <option label="Internet Addiction" value="InternetAddiction">Internet Addiction</option>
     
        </select>
    </td>
    </tr><tr>
    <th><b>Theory and Techniques
    </b>
    <br />
    <div class="small">Hold down the CTRL key as you click to select multiples.</div></th>
    <td>
        <select id="f_techniques" name="[B]techniques[/B][]" size="20" multiple
                >
        <option label="Adlerian" value="Adlerian">Adlerian</option>
    <option label="Imago Relationship" value="Imago">Imago Relationship</option>
    <option label="Interpersonal Neurobiology" value="Interpersonal">Interpersonal Neurobiology</option>
     
        </select>
    </td>
    </tr><tr>
    <th><b>Population
    </b>
    </th>
    <td>
        <input type=hidden name="[B]population[/B][]" value="" />
        <label><input type="checkbox" name="population[]" value="Adolescents" />Adolescents</label><br />
    <label><input type="checkbox" name="population[]" value="Public" />Training/Public Speaking</label><br />
    <label><input type="checkbox" name="population[]" value="Women" />Women</label><br />
     
    </td>
    </tr><tr>
    <th><b>Languages
    </b>
    <br />
    <div class="small">Languages spoken besides english</div></th>
    <td>
        <input type=hidden name="[B]languages[/B][]" value="" />
        <label><input type="checkbox" name="languages[]" value="SignLanguage" />American Sign Language</label><br />
    <label><input type="checkbox" name="languages[]" value="Urdu" />Urdu</label><br />
     
    </td>
    </tr><tr>
    <th><b>Offer Supervision
    </b>
    <br />
    <div class="small">To be included in the supervision list select one or more.</div></th>
    <td>
        <input type=hidden name="[B]offersupervision[/B][]" value="" />
        <label><input type="checkbox" name="offersupervision[]" value="Individual" />Individual</label><br />
    <label><input type="checkbox" name="offersupervision[]" value="Group" />Group</label><br />
    <label><input type="checkbox" name="offersupervision[]" value="Mentor" />Mentor</label><br />
     
    </td>
    </tr><tr>
    <th><b>Individual Supervision Rate
    </b>
    </th>
    <td>
        <input type="text" id="f_individual_rate" name[B]="individual_rate[/B]" size="20"
                     value="" />
    </td>
    </tr><tr>
    <th><b>Group Supervision Rate
    </b>
    </th>
    <td>
        <input type="text" id="f_group_rate" name[B]="group_rate[/B]" size="20"
                     value="" />
    </td>
    </tr>
    
    <th><b>Personal Statement
    </b>
    <br />
    <div class="small">Recommend including special training, special certification, factors unique to you and your practice.</div></th>
    <td>
        <textarea id="f_profile" name="[B]profile[/B]" cols="100"
             rows="6"></textarea>
    </td>
    
    <

Share This Page