• 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: Validation issue skipping pages on multipage form

Validation issue skipping pages on multipage form 6 years 5 months ago #38586

Hi everyone,

I have created a multipage form with a payment radio button group.
Based on the radio button selection 1 or more pages in the form are skipped. This works fine when you do not have any required fields on the skipped pages, but it gives an error as soon as it needs to skip a page with required field.

Anyone know of a solution to this?

Current code:
<script type="text/javascript">
function rsfp_conditionalPage(formId, page, totalPages, validate){
 
	if(page == 3 && document.getElementById('payment-137-0').checked && typeof validate != 'undefined'){
		rsfp_changePage(formId, page+3, totalPages, validate);
		return '';
	}
 
  	if(page == 3 && document.getElementById('payment-137-1').checked && typeof validate != 'undefined'){
		rsfp_changePage(formId, page+2, totalPages, validate);
		return '';
	}
  	if(page == 3 && document.getElementById('payment-137-2').checked && typeof validate != 'undefined'){
		rsfp_changePage(formId, page+1, totalPages, validate);
		return '';
	}
  	if(page == 3 && document.getElementById('payment-137-3').checked && typeof validate != 'undefined'){
		rsfp_changePage(formId, page, totalPages, validate);
		return '';
	}
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!