Click to See Complete Forum and Search --> : how to preview the text area before user click the submit button


vijay_wv
10-15-2004, 02:32 PM
Hello,

Here i am pasting my code but i don't know how to make it preview the text area in a pop up window before the user hits the submit button which goes into access database. Please help me.

<cfform action="electionresult.cfm" method="post">

<input type="hidden" name="OnsiteDate">

<table>
<tr>
<td> *Position <br>(Select one from the list)
</td>
<td>
<select name="Position">
<option value="President">President-Elect
<option value="Treasurer">Treasurer
<option value="Membership">Director-elect, Membership Interests and Services
<option value="Advocacy">Director-elect, Outreach and Advocacy
<option value="Generation">Director-elect, Generation and Dissemination of Knowledge
<option value="Commissions">Director-elect, Commissions
<option value="Multicultural">Chair, Standing Committee for Multicultural Awareness
<option value="Disabilities">Chair, Standing Committee for Disabilities
<option value="Lesbian">Chair, Standing Committee for Lesbian, Gay, Bisexual and transgender Awareness
<option value="Graduate">Chair, Standing Committee for Graduate Students and New Professionals
</select>
</td></tr>
<tr>
<td><br> *FirstName
</td>
<td><br>
<cfinput type="text" name="FirstName" alt="FirstName" message="Please enter the First Name" required="yes">
</td>
</tr>
<tr>
<td> <br>Middle Initial
</td>
<td><br>
<cfinput type="text" name="MiddleName" alt="MiddleName">
</td>
</tr>
<tr>
<td> <br>*LastName
</td>
<td><br>
<cfinput type="text" name="LastName" alt="LastName" message="Please enter the Last Name" required="yes">
</td>
</tr>
<tr>
<td> <br>Suffix
</td>
<td><br>
<cfinput type="text" name="Suffix" alt="Suffix">
</td>
</tr>
<tr>
<td> <br>Title
</td>
<td><br>
<cfinput type="text" name="Title" alt="Suffix">
</td>
</tr>

</table><tr>
<td> <br>*Statement of Goals (250 word limit). Please enter 2 carriage returns at the end of each paragraph.<br>
<br>
<textarea name="Goals" rows="10" cols="100"></textarea>
</td>
</tr>
<tr>
<td> <br><br>*Educational Degrees (listing of degrees earned and institutions, starting with most recent).<br>
Please enter 2 carriage returns at the end of each paragraph.
<br>
<textarea name="Education" rows="10" cols="100"></textarea>
</td>
</tr>
<tr>
<td> <br><br>*Professional Work History/Leadership Experiences/Professional Association Involvement (150 word limit).<br>
Please enter 2 carriage returns at the end of each paragraph.
<br>
<textarea name="Work" rows="10" cols="100"></textarea>
</td>
</tr>
<p>
<input type="button" value="ShowPreview">
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</cfform>

ray326
10-15-2004, 10:18 PM
******** how you think it should work. You don't have "the text area" you have three text areas. Why is the preview needed?

Stephen Philbin
10-16-2004, 09:06 AM
Don't bother with pop up crap. If you must have your preview then just echo the form data to the next page and ask if it is correct. If not click the back button, if so click the submit button.

vijay_wv
10-18-2004, 01:48 PM
Thank you guys.