• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Javascript on multpage form

Javascript on multpage form 11 years 11 months ago #23548

  • stevent
  • stevent's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 23
  • Thank you received: 1
I've created a form with a specific validation of one field with javascript. If the string in the field doesn't match the validation rul, the javascript returns an allert, a focus on the field and 'false'. Thejavascript is stored in the css/javascript attributes of the form.
I've set the validation trigger 'onBlur' (in the attribute of the field), so if one types something in the field and moves to the next field, the alertmessage is displayed.
The form is a multipage form. If one moves to the next page of the form, the allert message is displayed, but the form still moves to the next page and the incorrect data is stored.

How can I prevent going to the next page, if the fieldvalidation returns false?
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!