TOPIC:

Best way to go to a specific form page 2 years 6 months ago #248197

  • Topic Author
  • Rokhi
  • Offline
  • Senior Member
  • Senior Member
  • Registered
  • Posts: 158
  • Thanks: 1
What's the recommended way to redirect to a specific page from the before form piece?
I'm thinking I could use ff_redirectSelf and set ff_page to the last page number, but if I add a page, that would need to be changed.

Is there a function I can add in to the before form piece so that on return from one of the payment methods, I can intercept the progress and do some work, then send the user to whatever is the last page?

Please Log in or Create an account to join the conversation.

Best way to go to a specific form page 2 years 6 months ago #248204

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 780
Hi,

you can jump across your form pages using the native function ff_switchpage().

Here is example based on select list:
crosstec.org/en/support/online-documenta...other-form-page.html

Hope this helps

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Best way to go to a specific form page 2 years 6 months ago #248206

  • Topic Author
  • Rokhi
  • Offline
  • Senior Member
  • Senior Member
  • Registered
  • Posts: 158
  • Thanks: 1
Thanks Tihana
I looked at that. Can I call that function from the before form piece?

Please Log in or Create an account to join the conversation.

Best way to go to a specific form page 2 years 6 months ago #248208

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 780
Hi,

In before form piece you need to use PHP, so you can try this for example:
echo '
<script>
ff_switchpage(2);
</script>
';

Hope this helps

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Best way to go to a specific form page 2 years 6 months ago #248209

  • Topic Author
  • Rokhi
  • Offline
  • Senior Member
  • Senior Member
  • Registered
  • Posts: 158
  • Thanks: 1
Thanks for that.
I did try that (slightly different formatting but same thought) but I couldn't get it to open at the specified page.

I see how that will output a script section with that function in it.
But how do we call/activate that function? or does it just run when rendered?

Please Log in or Create an account to join the conversation.

Best way to go to a specific form page 2 years 6 months ago #248210

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 780
hm...did you try to redirect this in submitted script for example?
Your form->Advanced->More options->Scripts->Submitted script->custom:
function ff_nameofform_submitted(status, message){if(status==0){ff_switchpage(2);}else{alert(message);}}
nameofform is name of your form (not title)

Regards,
Tihana

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Time to create page: 0.085 seconds

Support Chat

Join our Discord chat and enter the Crosstec channels for live-support, chat forums and interact directly with the community!

After joining, please enter the Crosstec Area and use the #crosstec-support or #crosstec-general channels.

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Subscribe to news and updates!

Special Offer

Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!