We require two forms on a page and one is normal form. Our customer is using "Enter" button to submit forms,but while submitting using enter key only one form is submitted[validated].How can we handle both these forms.
"jinukosh" wrote in message news:3008026F-9F29-477D-8501-03580CF01907@microsoft.com... > We require two forms on a page and one is normal form. Our customer is > using > "Enter" button to submit forms,but while submitting using enter key only > one > form is submitted[validated].How can we handle both these forms. Multiple forms are independent by default, so that for example you can have a login (existing users) form with a signup (new users) form beneath. But you can call the second form's submit method from the first form's onsubmit event handler.
I think u didnt get me correct . Pls follow this URL http://www.wipro.com/webforms/download_form.aspx?ReturnUrl=/datadocs/analystreports/Butler_Group_Technology_Audit_2005.pdf There are 3 different submit buttons 1. Search 2. Login 3. For download Now after the page has loaded just hit the enter key. The download form gets validated. Now you enter some values into the Email ID field [in the user login box] and press enter[not mouse click]. Still the download form is getting validated. Ok Now how can I over come the situation. If I have entered some data into the login box only that form is to be validated Similarly if I have entered some value into download form that form should be validated. I think, I am more clear this time. Thank you in advance for the support providing "Ben Voigt" wrote: > "jinukosh" wrote in message > news:3008026F-9F29-477D-8501-03580CF01907@microsoft.com... > > We require two forms on a page and one is normal form. Our customer is > > using > > "Enter" button to submit forms,but while submitting using enter key only > > one > > form is submitted[validated].How can we handle both these forms. > > Multiple forms are independent by default, so that for example you can have > a login (existing users) form with a signup (new users) form beneath. But > you can call the second form's submit method from the first form's onsubmit > event handler. > > >
"jinukosh" wrote in message news:4BD0FB8F-5EA9-4955-A07F-D6F3BD5DF784@microsoft.com... >I think u didnt get me correct . Pls follow this URL It appears that there is only one form on that page, spanning the entire contents of the body element. You will need two forms, like <form method=post action=url1 id=Form1> <input ...><input ...> </form> <form method=post action=url2 id=Form2> <input ...><input ...> <input ...><input ...> <input ...><input ...> <input ...><input ...> </form> Then each of the two forms has its own ID and can be validated and submitted separately. The form submitted depends on which button is clicked (or which form has the focus when the ENTER key is pressed), not where data is filled in. The second form will always have data filled in for the drop-down lists. > > > http://www.wipro.com/webforms/download_form.aspx?ReturnUrl=/datadocs/analystreports/Butler_Group_Technology_Audit_2005.pdf > > > > > > There are 3 different submit buttons > > 1. Search > 2. Login > > 3. For download > > > > Now after the page has loaded just hit the enter key. The download form > gets > validated. > > Now you enter some values into the Email ID field [in the user login box] > and press enter[not mouse click]. Still the download form is getting > validated. > > > > > > Ok Now how can I over come the situation. > > If I have entered some data into the login box only that form is to be > validated > > Similarly if I have entered some value into download form that form > should > be validated. > > > > I think, I am more clear this time. > > > > Thank you in advance for the support providing > > > > "Ben Voigt" wrote: > >> "jinukosh" wrote in message >> news:3008026F-9F29-477D-8501-03580CF01907@microsoft.com... >> > We require two forms on a page and one is normal form. Our customer is >> > using >> > "Enter" button to submit forms,but while submitting using enter key >> > only >> > one >> > form is submitted[validated].How can we handle both these forms. >> >> Multiple forms are independent by default, so that for example you can >> have >> a login (existing users) form with a signup (new users) form beneath. >> But >> you can call the second form's submit method from the first form's >> onsubmit >> event handler. >> >> >>