Question
Form validation and image buttons
Hello
I am trying to create a wizard interface and need to jump from one for to another and back again.
I have been using images instead of buttons to accomplish this, but I have hit a problem. If I submit a form using the following JavaScript I cannot use the standard form validation or Yaromat.
javascript:document.form1.submit()
When the image is clicked the form just submits without validating the form.
I could use form buttons but I some times need a number of buttons on a form. Many of them will simply jump to other pages passing URL Parameters.
Any advice will be appreciated I suppose I need a way of getting the validation to work or a way of using buttons within an existing form to simply hyperlink to another page.
Cheers
I am trying to create a wizard interface and need to jump from one for to another and back again.
I have been using images instead of buttons to accomplish this, but I have hit a problem. If I submit a form using the following JavaScript I cannot use the standard form validation or Yaromat.
javascript:document.form1.submit()
When the image is clicked the form just submits without validating the form.
I could use form buttons but I some times need a number of buttons on a form. Many of them will simply jump to other pages passing URL Parameters.
Any advice will be appreciated I suppose I need a way of getting the validation to work or a way of using buttons within an existing form to simply hyperlink to another page.
Cheers
