• 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: Error message carried across multipage form

Error message carried across multipage form 12 years 6 months ago #19943

  • perini-ps
  • perini-ps's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Thank you received: 1
Hi all,

I have a question regarding multipage forms in RS Form Pro.

We have a multipage form which has AJAX validation. If the user makes an erroneous submission to page 1, the form throws the error message until the user completes page 1 correctly.

However, when the user clicks NEXT and goes onwards, the error message doesn't go away.

How can we make sure that error messages disappear if the user has moved onto a different page in the form?

Thanks in advance,
Paul
The administrator has disabled public write access.

Error message carried across multipage form 12 years 6 months ago #19962

  • gavindcht
  • gavindcht's Avatar
  • OFFLINE
  • Banned
  • Posts: 63
  • Thank you received: 1
Hi perini. I'm just wondering if you were able to find any luck on this yet.
Deleted code is debugged code.
The administrator has disabled public write access.

Error message carried across multipage form 11 years 11 months ago #23425

This was driving me bonkers.

Add this function to your javascript:
<script type="text/javascript">
 
function clearError() {
	document.getElementById("rsform_error_9").style.display = 'none';
}
 
</script>

The "rsform_error_9" may be different on your form, I haven't checked. Then on each page break add to the additional attributes:

onclick="clearError();"

Basically if the page invalidates it does run the additional attributes and rsForm defaults to changing the display of the error when there is an invalid field.

This function just keeps hiding the error. It works because it only gets called if their is NOT an invalid field.

Kyle
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!