• 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: Java Script redirect on submition

Java Script redirect on submition 12 years 7 months ago #18936

Hi,

I have a JavaScript function defined in CSS and JavaScript section which looks like this:
<script>
 
function redirectMe() { 
if(document.getElementById('paypal').checked) {
window.location.href="http://paypalsomewww.com";
} else window.location.href="http://somewww1.com";
 
}
 
</script>

I also hace an event added on my submit button:
onClick="function('redirectMe');"

What I am trying to achieve is to redirect user to external page after submission, depending on radio selection. Somehow, redirect does not work, and I am redirected to Thank You page.Any ideas how to solve this?

The form is to be used in iFrame, and redirection is to external paypal site - it does not work in iFrames.

Thanks for advice!
The administrator has disabled public write access.

Re: Java Script redirect on submition 12 years 7 months ago #18965

Hello,

Maybe you just need to disable the thank you page and use code to redirect after submission.
There is a special part in RSForm! Pro to run codes after submission.
Regards
Wilco Alsemgeest

Please note: my help is not official customer support. To receive your support, submit a ticket by clicking www.rsjoomla.com/my-support-tickets.html
The administrator has disabled public write access.

Re: Java Script redirect on submition 12 years 7 months ago #18987

Hi,
thanks for your reply.
I have disabled thank you massage, and have continue button on (selection becomes inactive if I choose to switch off 'Tank you' massage). Does not help.
I just discovered that it works, if I press button but form is not submitted (ex. empty fields).
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!