TOPIC:

Best way to go to a specific form page 1 week 4 days ago #248197

  • Topic Author
  • Rokhi
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 100
  • 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 1 week 4 days ago #248204

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 1261
  • Karma: 3
  • Thanks: 110
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 1 week 4 days ago #248206

  • Topic Author
  • Rokhi
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 100
  • 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 1 week 4 days ago #248208

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 1261
  • Karma: 3
  • Thanks: 110
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 1 week 4 days ago #248209

  • Topic Author
  • Rokhi
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 100
  • 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 1 week 4 days ago #248210

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 1261
  • Karma: 3
  • Thanks: 110
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.052 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

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

Special Offer

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