Resetting Dyna form fields

Hi,
I am developing a Web Application using Struts. I have a JSP form which is a Dyna Form, the scope of this form is "session". The form has few input text fields. When i Submit the form, the associated action creates the record in database. Then the action is forwarded to the same jsp page.
In the action I used dynaform.reset(mapping, request) method after submitting but still the form displays the values.
Do I have to explicity clear each form field in the action class. Or is there any better way of resetting the fields of this form.
Any suggestions are highly appreciated.
Thanks in advance.

I faced similar problems, my solution was to use a specialised DynaACtionForm
public class DynaActionResetForm extends DynaActionForm
  public void doReset( ActionMapping actionMapping, HttpServletRequest httpServletRequest )
    initialize(actionMapping);
}Call doReset when you otherwise would call reset()

Similar Messages

  • How reset Acrobat form field using javascript API

    How reset Acrobat form field using javascript API

    There are several ways:
    resetForm(["Text1"]);
    or
    getField("Text1").value = getField("Text1").defaultValue;
    George

  • Acrobat XI programmatically reset/clear all form fields when opening a PDF form

    I've got a PDF form document that I'm working on.  I'd like to add something to it to programmatically clear or reset all form fields to blank when the document is opened.
    Thoughts/ideas??
    Mucho thanks!!

    You can use the resetForm JavaScript method, either in the initial page's Page Open event or in a document-level JavaScript whic will execute when the document is opened.
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.523.html

  • How turn off auto field adding to "Reset a form"

    Hi,
    I "inherited" some form. Some fields have a "Reset a form" on it (resetting some specified fields in the form). Everytime I change a fieldname or create a new field, that field gets added to the "Reset a form" in all the fields with a "Reset a form" in the document!
    This really bums me out, because It's costing me loads of work just to change all the settings back to normal.
    Any way to turn this "feature" off?
    Would be a great help!!

    I was hoping someone could point me to a setting I could change. Probably there isn't a setting. I'll have to consider it a bug then. I'll try and report the bug to Adobe (hope they're listening).

  • Weird behavior in form fields

    I have a problem when trying to enter text in a form (on any webpage) or enter text in the Google search bar embedded in the top section of my Firefox browser. This also happens in a form field if I hit the <Enter> key.
    When I start typing sometimes the Firefox "Find bar" opens or I get other strange behavior and am not able to type in the form. Several times when I try to start entering text in a form random text on the webpage is highlighted and the browser freezes up.
    I confirmed that "Search for text when I start typing" is unchecked as is explained here: https://support.mozilla.org/en-US/kb/Quick%20find%20bar%20opens%20when%20typing%20in%20text%20fields?esab=a&as=aaq.
    Any ideas what in the world could be going on and how I can fix this issue?
    System information:
    Firefox 16.0.2
    Windows 7
    Thanks much.

    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    You can also try to reset Firefox:
    *https://support.mozilla.org/kb/Basic+Troubleshooting

  • Link a Form Field to new Text Field

    PDF - form field
    Looking for a code to link a form field(text_1, on page #5) to
    another, new form field(text_2, on pages 2-4).
    Maybe a "Page Properties" action (i.e., Page Open: field text_2 = field text_1)
    ~~
    Why....
    busy but here's why
    In the PDF, there are Form fields on page 5 which interface (externalinterface) with an RMA ( a SWF) on page 2.
    This all works well.
    As the form fields must be carried forward (from page 5 to page 2... to interface the RMA),
    the orignal page 5, From fields are copied to pages 2-4 and then "Hidden".
    Again, this works just fine.
    A reset "action" (button) was added to, well, clear the Form Field for easy reuse.
    The reset ''action' does it's job and clears ALL form fields with the same "Name".... on every /all pages.
    This causes the dynamic interface, with the RMA, to display blank fields (within the SWF).
    This will effect the User's experience.
    ~~
    Work aound.....
    Find a way to label the Form Fields (page 5) so that "only they" are reset, and no others.
    Create a link of Form Field inputs on page 5 (with names... x,y,z),
    to new Form Fields pages 2-4 (with a differnet names... a,b,c).
    Thanks in advance for your help....
    DS

    Hi jm,
    This may be what you are after. No text wrap, but notes are there.
    Type an account number into the Enquire table to get Client and Contact
    Formula in B2 (and Fill Right)
    =INDEX(Database::B,MATCH($A2,Database::$A,0))
    Large notes display table with Wrap Text
    Formula is
    =INDEX(Database::D,MATCH(Enquire::$A2,Database::A,0))
    All together:
    Change it around if you want to look up by Client instead of Account
    Regards,
    Ian.

  • Using Javascript to reset a form on document load

    I am trying to reset all field vaules on a acrobat form to the default values, when the form is initially loaded.  I am trying to use the resetForm() method in a document level script, but not having any luck.
    I have been able to reset fields after user inputs such as a button that resets the form, or a script the will reset a form prior to importing field data... but I need to ensure all data is removed from the form when the form first loads
    Any ideas?

    I believe you mean a document level JavaScript, Entering Document Level Scripts, since a Folder level script would require the placing of the code into one of the Acrobat Application's JavaScript folder on the user machine, Entering Folder Level Scripts. Placing the JS code as a Document Level Sept will clear the form when the form is opened. One could also use the Page Open action if additional code is added to prevent re clearing the form if part of a multi page document and one navigates back to the original page.
    You should also consider turning off auto complete and auto caching of form data.
    Minimizing Exposure of Personal Information on Public Computers

  • Form field actions in Acrobat 9 Pro

    I have two sort of related issues in a form I've created using 9 Pro.
    1 - I want to use the "reset a form" action with button fields, but Acrobat won't let me select the fields I want to clear.  I get the Reset a Form window that has all the form fields listed with a check box next to each one. The "Select All" and "Deselect All" buttons do what they are supposed to do, but I cannot check or uncheck them individually to select only the ones I want.
    2 - I want to use the "Calculate" function with text fields, but have the same problem as with the "reset a form" function.  I can get to the pick window that has the fields listed with check boxes; and, again, the Select All and Deselect all buttons work, but I cannot check or uncheck individual fields to calculate only those I want.
    Any suggestions would be appreciated, thanks.

    I figured it out! I had the same problem. I clicked, right clicked, center clicked, shift clicked, alt-clicked, tried all the function keys and finally hit the space bar. BINGO! Nowhere do I see anything that tells you to select by hitting the spacebar, but that's the solution.

  • Clearing form fields in a PDF

    I am using Microtype's TimeSavers and SP Form assistant to create forms and calculators in my FrameMaker documents. Is there a way to add an extendscript that will reset/clear the fields when the PDF is opened each time? It is going to be part of a book PDF on a server, so it's going to be accessed by many people. I need any fields to be cleared/reset on open so that each time it will be cleared for the person opening the PDF.
    Thanks, Gary

    Gary,
    I think that you'll have to do this on the Acrobat side by embedding a javascript routine in your form(s).
    There's an overview tutorial at AcrobatUsers on using Javascript with Forms, see: http://acrobatusers.com/tutorials/using-acrobat-javascript-with-forms
    IIRC, you'll need to create a "Document Level Script" (see: http://acrobatusers.com/tutorials/js_document_scripts) that contains:
    // reset the form
      this.resetForm();
    For more PDF scripting tips, check out Thom Parker's PDF scripting site: http://www.pdfscripting.com/public/main.cfm

  • How To Reset a Form (Not as easy as you would think)?

    Hi All,
    I'm unable to get a form to reset its value when using a commandButton that has immediate set to true.
    I've got a simple little jsf page that has a form and a datatable. The form is bound to an object in a class I'm using to handle the view, the datatable is bound to a dataModel from the same handler class. The functionality I have is quite simple:
    a user clicks on a commandLink in a row of the datatable
    the corresponding object is loaded into a "currentObject" property of the handler class
    the form fields are mapped to the "currentObject" property of the handler.
    The user may update or reset the form.
    The goal is to have the reset commandButton set the "currentObject" property of the handler class to null (or a new, unpopulated object) so that the fields of the form are set to blank again on render. This works fine as long as I don't use immediate="true". When I do use the immediate=true attribute, the "currentObject" variable is, indeed, set to null, but the form still renders with the old "currentObject" values in it!!
    I have to use immediate="true" because there is validation going on for the form that I want to avoid.
    If I use a commandButton type="reset", the fields are not cleared because the reset functionality of the browser (ie6 and firefox) resets the fields to the values they were at the time the form was displayed--the very values I wish to totally remove!
    This seems like such a common, simple thing to do. What am I missing?
    Thanks,
    John

    I have a similiar problem, and maybe putting buttons in a different form is the answer:
    I have a page with a selectOneListbox on the left, and a set of inputs on the right. The listbox represents the available beans to select, and the set of inputs contains all the editable fields for the beans. Basically this is just a bean editor.
    There is a command Button beneath the listbox for viewing a bean. When this button is clicked, the set of inputs are populated with that bean's data.
    There is also a command button beneath the set of inputs that allows the user to save their changes.
    All of these elements are in the same form tag.
    JSF jsp:
    <f:view>
      <h:form>
        <h:panelGrid columns="2">
          <h:panelGrid columns="2">
            <h:selectOneListbox size="10" value="#{editor.selectedBean}" >
              <f: selectItems value="#{editor.beanSelectItemCollection}" />
            </h:selectOneListbox>
            <h:commandButton actionListener="#{editor.view}" value="View" />
          </h:panelGrid>
          <h:panelGrid  columns="2">
            <h:inputText value="#{editor.editingBean.property}" />
            <h:commandButton actionListener="#{editor.save}" value="Save" />
          </h:panelGrid>
        </h:panelGrid>
      </h:form>
    </f:view>Editor bean:
    public class Editor {
      // use a blank bean as default
      // so the editor is populated with blanks
      private Bean editingBean = new Bean();
      // don't initially select any beans
      private Bean selectedBean = null;
      private Map beans = new HashMap();
      public Editor() {
      public void save(ActionEvent e) {
        beans.put(editingBean.getId(), editingBean);
      public void view (ActionEvent e) {
        editingBean = (Bean)selectedBean.clone();
      // getters and setters
      public Bean getEditingBean() {
        return editingBean;
      public void setEditingBean(Bean b) {
        editingBean = b;
      public Bean getSelectedBean() {
        return selectedBean;
      public void setSelectedBean(Bean b) {
        selectedBean = b;
      // before entering the JSP for this bean, this method should be called
      // to populate the editor
      public void setBeans(Collection c) {
        beans.clear();
        for (Iterator i = c.iterator(); i.hasNext(); ) {
          Bean b = (Bean)i.next();
          beans.put(b.getId(), b);
      public Collection getBeans() {
        return beans.values();
      public Collection getBeanSelectItemCollection() {
        Collection items = new ArrayList(beans.size());
        for (Iterator i = beans.values().iterator(); i.hasNext(); ) {
          items.add(new SelectItem(bean, bean.getProperty());
        return items;
    }Here comes the problem:
    If I want to set fields as required or use any of the JSF validation functionality, my view usecase breaks. This happens if the user views bean1 changes some data to be invalid/not existant and then tries to view bean2. If they don't click the save button, validation/required should not be checked. My initial thought is that I should be able to set my view button and view listbox to be immediate. This does properly update the view listbox, but then if I change the values in the backing bean for the set of inputs, those changes are never updated to the screen, and the set of inputs is still populated with bean1's data even though the backing bean for all those inputs is now bean2.
    It appears that the view never requeries the backing bean when responseComplete() is called (which happens with an immediate command). Is this a bug in faces, or is this how the spec says it is supposed to behave? If this is the correct behavior what is a better practice to acheieve my usecase?
    My current workaround is to ignore faces validation and manually validate when the user clicks the save command, and then manually set the messages for the bad components. Obviously, this is not an ideal solution, but I was hoping that this faces behavior was incorrect and thus my solution would be temporary.
    I'm not tied to a specific solution, but I am discouraged that Adam says in order to reset the set of inputs, we have to manually update the model during the apply request values phase.

  • How to reset a form instead of all the forms in the document?

    I installed a button in each page of my file my (ten pages, each one with a different one form) to give the user the faculty of clear specifically through a single choice
    But this reset button resets all the pages. I took care to rename this button in each page but Acrobat proceeds to execute a massive reset operation.
    Thank you.

    Mr Try,
    You wrote the whole thing...
    Thank you.
    Could you please give me the last breath?
    My real page numberin PDF  is 25 an I tried this (placing the two pieces) without success...
    function resetFieldsOnPage(p) {
        var fields = [];
        for (var i=0; i<this.numFields; i++) {
            var f = this.getField(this.getNthFieldName(i));
            if (f==null) continue;
            if (f.page==p)
                fields.push(f.name);
        this.resetForm(fields);
    And then to reset all the fields on the first page, call:
    resetFieldsOnPage(25);

  • Webpage PDF states This file is a PDF form when no form fields in actual pdf

    I have an acrobat.com account, and when uploading and displaying pdf's in a webpage, even when there are no form fields in the pdf it states that "This file is a PDF form, please download and fill in"
    Even creating a new pdf this state seems to now be the default in Acrobat Pro 8 on my Mac, how do i reset back to defaults so this does not happen?
    See https://acrobat.com/#d=5p8gk446VqZNgeNfbRc8-w
    For what i mean...there are no fields in this pdf....when saving an existing pdf or creating a new one this now happens.
    many thanks

    http://screencast.com/t/YTdlYWM5
    That's not the only problem looks like adobe.com has problems as well. IF the same site is spoofed with FF useragent, works perfect.

  • PDF form field calculation help needed

    I need to make some simple calculations on a pdf form and need some help.
    I have a form field for number of guests.
    A field for a set cost for various tickets (there are 3 levels of ticket prices) (I might not need this field).
    A subtotal of the guests attending and ticket price.
    A grand total of the subtotals.
    I can't figure out how to either put in a fixed cost in a form field or input a calculation so that the number of tickets is muliplied by a fixed number and gives me a subtotal.
    Thanks.

    Ok. I finally got the calculations to work. But..... when I save and open in Reader, they don't work. Go back to Pro, they don't work there now either. They also don't show up under the Set Field Order Calculations. To reset them, i have to erase the calculations, save, redo the calculations. Preview the form and everything works — calculations happen and i get a total.
    Adobe Reader usage rights are enabled.
    Why is this so hard?
    I found this thread http://forums.adobe.com/message/1152890#1152890 about it. Is this bug still going on since 2009?
    Ok. Apparently you have to enable reader rights after the form is done. It seems to work now. What a pain.

  • Editing Form Field color and search field

    I am designing a website - nextmedian.com and I am having
    some trouble changing the background color of the some form fields
    for "Your Full Name" and "Your E-mail" from yellow to dark blue.
    The link is
    http://www.nextmedian.com/contacts.html
    The Contacts webpage html code is:
    [CODE]
    <form name="formmail"
    action="/cgi-bin/formmail/formmail.cgi" method="post">
    <input type=hidden name="recipient"
    value="[email protected]">
    <table width="300" border="0" cellspacing="0"
    cellpadding="0">
    <tr>
    <td valign="top" width="76" align="right"
    height="25"><br style="line-height:3px ">Your Full
    Name:</td>
    <td valign="top"><input type=text name="realname"
    size="15" value=""></td>
    </tr>
    <tr>
    <td valign="top" align="right" height="25"><br
    style="line-height:3px ">Your E-mail:</td>
    <td valign="top"><input type=text name="email"
    size="35" value=""></td>
    </tr>
    <tr>
    <td valign="top" align="right" height="50"><br
    style="line-height:3px ">Message:</td>
    <td valign="top"><textarea name="body" cols="4"
    rows="2" wrap="virtual"
    id="message"></textarea></td>
    </tr>
    <tr>
    <td> </td>
    <td valign="top" align="right"><input type="submit"
    value="Send" size="1" style="width:42px; height:20px">
    <img
    src="../template_11171_SE8HPoI5oO381CXsvRUV/site/images/spacer.gif"
    alt="" width="1px" height="2px"><input type="reset"
    value="Reset" size="1" style="width:42px; height:20px">
    </tr>
    </table>
    </form> </td>
    </tr>
    </table>
    </td>
    </tr>
    [/CODE]
    (ii) I have a problem with formatting the search field -
    http://nextmedian.com/cgi-bin/search.pl
    to have the same look and feel as my website.

    On Fri, 8 Sep 2006 20:53:25 +0000 (UTC), "wire_jp"
    <[email protected]> wrote:
    >I am designing a website - nextmedian.com and I am having
    some trouble changing
    >the background color of the some form fields for "Your
    Full Name" and "Your
    >E-mail" from yellow to dark blue. The link is
    >
    http://www.nextmedian.com/contacts.html
    They look dark blue to me. Disable your Google toolbar.
    Gary

  • Required form fields - help.

    Hello:
    Knowing next to nothing about html code, Javascript and submission forms, I was hoping to make the following form fields below mandatory.
    Below is the script for doing so and below that the form. Can someone please adjust the form below (to work with the Javscript) so that it will function, so that I can just copy the adjusted code, paste it all into the form page and be on my way? Any help would be appreciated.
    Thanks,
    --Joe
    First Name
    Last Name
    Title
    Facility/Practice Name
    Daytime Phone
    Evening Phone
    Email
    <script language="JavaScript">
    <!--
    * Required field(s) validation v1.10- By NavSurf
    * Visit Nav Surf at http://navsurf.com
    * Visit http://www.dynamicdrive.com/ for full source code
    function formCheck(formobj){
        // Enter name of mandatory fields
        var fieldRequired = Array("FirstName", "LastName");
        // Enter field description to appear in the dialog box
        var fieldDescription = Array("First Name", "Last Name");
        // dialog message
        var alertMsg = "Please complete the following fields:\n";
        var l_Msg = alertMsg.length;
        for (var i = 0; i < fieldRequired.length; i++){
            var obj = formobj.elements[fieldRequired[i]];
            if (obj){
                switch(obj.type){
                case "select-one":
                    if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){
                        alertMsg += " - " + fieldDescription[i] + "\n";
                    break;
                case "select-multiple":
                    if (obj.selectedIndex == -1){
                        alertMsg += " - " + fieldDescription[i] + "\n";
                    break;
                case "text":
                case "textarea":
                    if (obj.value == "" || obj.value == null){
                        alertMsg += " - " + fieldDescription[i] + "\n";
                    break;
                default:
                if (obj.type == undefined){
                    var blnchecked = false;
                    for (var j = 0; j < obj.length; j++){
                        if (obj[j].checked){
                            blnchecked = true;
                    if (!blnchecked){
                        alertMsg += " - " + fieldDescription[i] + "\n";
        if (alertMsg.length == l_Msg){
            return true;
        }else{
            alert(alertMsg);
            return false;
    // -->
    </script>
    <form id="wstForm_Contact" name="Contact Form" action="%wstx.formmailerurl%" method="post" labelid="formLabel_ContactForm">
        <table width="100%" cellspacing="1" cellpadding="5" class="contactFormTable">
            <tbody>
                <tr>
                    <td align="center" style="font-size: 8pt; text-decoration: none; font-weight: normal;">
                    <table width="90%" cellspacing="0" cellpadding="3" border="0" class="contactFormTable">
                        <tbody>
                            <tr>
                                <td align="center" style="font-size: 12pt; font-weight: bold;">
                                <font face="Palatino Linotype, Book Antiqua, Palatino, serif"><span id="formLabel_ContactForm" controlid="wstForm_Contact">Contact Us</span><br />
                                </font>
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-decoration: none; font-weight: normal; padding-bottom: 10px;">
                                <p style="text-align: justify;">
                                <font face="Palatino Linotype, Book Antiqua, Palatino, serif" style="font-size: 13px;">In this area, you can enter text about your contact form. You may want to explain what happens after a visitor submits the form and include a contact phone number.</font>
                                </p>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <table width="90%" cellspacing="1" cellpadding="3" border="0" class="contactFormTable">
                        <tbody>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_First" controlid="formElement_First">First Name:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <input id="formElement_First" name="First Name" labelid="formLabel_First" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_Last" controlid="formElement_Last">Last Name:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <input id="formElement_Last" name="Last Name" labelid="formLabel_Last" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_Last" controlid="formElement_Last">Title:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <input id="formElement_Last" name="Title" labelid="formLabel_Last" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_Last" controlid="formElement_Last">Facility/Practice Name:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <input id="formElement_Last" name="Facility/Practice Name" labelid="formLabel_Last" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_Street1" controlid="formElement_Street1">Address Street 1:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <input id="formElement_Street1" size="30" name="Address Street 1" labelid="formLabel_Street1" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_Street2" controlid="formElement_Street2">Address Street 2:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <input id="formElement_Street2" size="30" name="Address Street 2" labelid="formLabel_Street2" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_City" controlid="formElement_City">City:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <input id="formElement_City" name="City" labelid="formLabel_City" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_Zip" controlid="formElement_Zip">Zip Code:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <input id="formElement_Zip" size="5" name="Zip Code" maxlength="5" labelid="formLabel_Zip" /> (5 digits)
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_State" controlid="formElement_State">State:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <select id="formElement_State" name="State" labelid="formLabel_State">
                                <option value="AL">
                                AL
                                </option>
                                <option value="AK">
                                AK
                                </option>
                                <option value="AZ">
                                AZ
                                </option>
                                <option value="AR">
                                AR
                                </option>
                                <option value="CA">
                                CA
                                </option>
                                <option value="CO">
                                CO
                                </option>
                                <option value="CT">
                                CT
                                </option>
                                <option value="DE">
                                DE
                                </option>
                                <option value="DC">
                                DC
                                </option>
                                <option value="FL">
                                FL
                                </option>
                                <option value="GA">
                                GA
                                </option>
                                <option value="HI">
                                HI
                                </option>
                                <option value="ID">
                                ID
                                </option>
                                <option value="IL">
                                IL
                                </option>
                                <option value="IN">
                                IN
                                </option>
                                <option value="IA">
                                IA
                                </option>
                                <option value="KS">
                                KS
                                </option>
                                <option value="KY">
                                KY
                                </option>
                                <option value="LA">
                                LA
                                </option>
                                <option value="ME">
                                ME
                                </option>
                                <option value="MD">
                                MD
                                </option>
                                <option value="MA">
                                MA
                                </option>
                                <option value="MI">
                                MI
                                </option>
                                <option value="MN">
                                MN
                                </option>
                                <option value="MS">
                                MS
                                </option>
                                <option value="MO">
                                MO
                                </option>
                                <option value="MT">
                                MT
                                </option>
                                <option value="NE">
                                NE
                                </option>
                                <option value="NV">
                                NV
                                </option>
                                <option value="NH">
                                NH
                                </option>
                                <option value="NJ">
                                NJ
                                </option>
                                <option value="NM">
                                NM
                                </option>
                                <option value="NY">
                                NY
                                </option>
                                <option value="NC">
                                NC
                                </option>
                                <option value="ND">
                                ND
                                </option>
                                <option value="OH">
                                OH
                                </option>
                                <option value="OK">
                                OK
                                </option>
                                <option value="OR">
                                OR
                                </option>
                                <option value="PA">
                                PA
                                </option>
                                <option value="RI">
                                RI
                                </option>
                                <option value="SC">
                                SC
                                </option>
                                <option value="SD">
                                SD
                                </option>
                                <option value="TN">
                                TN
                                </option>
                                <option value="TX">
                                TX
                                </option>
                                <option value="UT">
                                UT
                                </option>
                                <option value="VT">
                                VT
                                </option>
                                <option value="VA">
                                VA
                                </option>
                                <option value="WA">
                                WA
                                </option>
                                <option value="WV">
                                WV
                                </option>
                                <option value="WI">
                                WI
                                </option>
                                <option value="WY">
                                WY
                                </option>
                                </select>
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_DaytimePhone" controlid="formElement_DaytimePhone">Daytime Phone:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <input id="formElement_DaytimePhone" name="Daytime Phone" labelid="formLabel_DaytimePhone" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_EveningPhone" controlid="formElement_EveningPhone">Evening Phone:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <input id="formElement_EveningPhone" name="Evening Phone" labelid="formLabel_EveningPhone" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_Email" controlid="formElement_Email">Email:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <input id="formElement_Email" name="Email" labelid="formLabel_Email" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_Comments" controlid="formElement_Comments">Comments:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <textarea id="formElement_Comments" name="Comments" rows="4" cols="38" style="width: 100%;" labelid="formLabel_Comments">Enter comments here!
                                </textarea>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <p>
                    <input type="submit" id="wstForm_Contact_Submit" value="Submit" onclick="return wstxSubmitForm(this);" /> <input type="reset" id="wstForm_Contact_Reset" value="Reset" />
                    </p>
                    </td>
                </tr>
            </tbody>
        </table>
        <input type="hidden" id="FormMailerSubject" name="FormMailerSubject" value="Contact Form." /><input type="hidden" id="FormMailerRedirect" name="FormMailerRedirect" value="%wstx.project.BaseUrl%" />
    </form>

    Rather than re-inventing the wheel, why don't you use Spry Validation widgets for your client side processing? Have a look here http://labs.adobe.com/technologies/spry/demos/formsvalidation/index.html and here http://labs.adobe.com/technologies/spry/samples/.
    Mind you, using JS your are only validating on the side of the client. If JS is turned off in the browser, there will be no validation. Therefore you should look at serverside validation as well.
    Gramps

Maybe you are looking for

  • To create bapi?(function module for bapi i.e. checks and update table)

    Hi all,   I want to know how to create BAPI?. means in function module how i hv to put checks and how i will update database table. thanks and regards sg

  • USER DEFINED TABLES IN XL REPORTER

    Hello, I have a user defined field based on a user defined table with code and name. I call my user defined field in XL reporter. This field varied with the data that I report. I would like to know how I can add the name of the table in my XL report.

  • Help with EXECUTE IMMEDIATE and DROP

    Hi all, we are trying to create a procedure to do the following: * We have in the database some tables named like C$_XXXXXXXXX * We want to drop some of these tables that have a common prefix (f.e C$_1203101) DECLARE v_sql VARCHAR2(300); BEGIN SELECT

  • Personnel Cost Planning Scenario documentation..

    Hi all, If anyone of you have done Personnel Cost planning..then I will really appreciate any kind of documentation on it It will help me greatly as a reference as we are starting a new project on the same. willinuk "at-the-rate" gmail.com Help much

  • Converting a works file to a pdf

    I just downloaded Adobe XI Pro.  How do I convert a Works file into a pdf?