Results 1 to 6 of 6

Thread: Form Sections Filled out

  1. #1
    Join Date
    Aug 2007
    Location
    Ft Myers, FL
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Form Sections Filled out

    Hey everyone,

    I am using the accordion content script in a form.

    http://www.dynamicdrive.com/dynamici...daccordion.htm

    I have this working great with a form that the end user needs to fill out. I have been asked to somehow visually let the end user know that when they fill out the section below that that section is complete.

    [code]
    <h3 class="AccordionHeader">Past Medical History</h3>
    <div class="AccordionPane">
    <textarea name="Past Medical History" id="Past Medical History" cols="55" rows="8"></textarea>
    </div>

    <h3 class="AccordionHeader">Family History</h3>
    <div class="AccordionPane">
    <textarea name="Family History" id="Family History" cols="55" rows="8"></textarea>
    </div>
    [code]

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Quote Originally Posted by fmrock View Post
    to somehow visually let the end user know that when they fill out the section below that that section is complete
    What are you thinking of? Text, a picture, a color?

  3. #3
    Join Date
    Aug 2007
    Location
    Ft Myers, FL
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I was thinking maybe turning on an image or just puttting some text in the AccordionHeader.

    But I am open to ideas, nothing is set in stone They just want something to show that they have been in that section.

    So if they fill out the textarea in a section, it should turn on the graphic or text.

    Also, one of the sections has checkboxes instead of a text area.

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Could you please post the entire code or a link to your site?

  5. #5
    Join Date
    Aug 2007
    Location
    Ft Myers, FL
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Here is the code for the form.

    Code:
    <h3 class="AccordionHeader">History</h3>
    <div class="AccordionPane">
    <textarea name="History" id="History" cols="55" rows="8"><%=varHistory%></textarea>
    </div>
    
    <h3 class="AccordionHeader">Review of Systems</h3>
    <div class="AccordionPane">
    <table width="300" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="5" align="left" valign="top">&nbsp;</td>
        <td width="147" align="left" valign="top">
    		<input name="ROS_Constitutional" type="checkbox" value="1"  >Constitutional<br>
    		<input name="ROS_Eyes" type="checkbox" value="1"  >Eyes<br>
    		<input name="ROS_ENT" type="checkbox" value="1"  >ENT<br>
    		<input name="ROS_CV" type="checkbox" value="1"  >CV<br>
    		<input name="ROS_Respiratory" type="checkbox" value="1"  >Respiratory<br>    
    		<input name="ROS_GI" type="checkbox" value="1"  >GI<br>
        </td>    
        <td width="146" align="left" valign="top">
    		<input name="ROS_GU" type="checkbox" value="1"   >GU<br>
    		<input name="ROS_MS" type="checkbox" value="1"  >MS<br>
    		<input name="ROS_Skin" type="checkbox" value="1"  >Skin<br>
    		<input name="ROS_Neuro" type="checkbox" value="1"  >Neuro<br>
    		<input name="ROS_Psych" type="checkbox" value="1"  >Psych<br>    
        </td>
      </tr>
    <tr>
        <td width="5" align="left" valign="top">&nbsp;</td>
        <td width="147" align="center" valign="top"><a href="#" onclick="CheckAll()" >Check All</a></td>
        <td width="146" align="center" valign="top"><a href="#" onclick="UncheckAll()" >Uncheck All</a></td>    
    </tr>  
    </table>
    </div>
    
    <h3 class="AccordionHeader">Past Medical History</h3>
    <div class="AccordionPane">
    <textarea name="Past_Medical_History" id="Past_Medical_History" cols="55" rows="8"><%=varPast_Medical_History%></textarea>
    </div>
    
    <h3 class="AccordionHeader">Family History</h3>
    <div class="AccordionPane">
    <textarea name="Family_History" id="Family_History" cols="55" rows="8"><%=varFamily_History%></textarea>
    </div>
    
    <h3 class="AccordionHeader">Social History</h3>
    <div class="AccordionPane">
    <textarea name="Social_History" id="Social_History" cols="55" rows="8"><%=varSocial_History%></textarea>
    </div>
    
    <h3 class="AccordionHeader">Physical Examination</h3>
    <div class="AccordionPane">
    <textarea name="Physical_Examination" id="Physical_Examination" cols="55" rows="8"><%=varPhysical_Examination%></textarea>
    </div>

  6. #6
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Whenever, I'm looking to do live validation of complicated forms, I turn to jQuery and its form and validation plugins.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •