TOPIC:

Can I redirect the user after Submit? 10 months 1 day ago #268855

  • Topic Author
  • johnbrad
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 1
  • Thanks: 0
Hi Everyone,

I am trying to add contact form on my website , and trying to redirect the user to homepage after user click on submit.

Is it possible? If yes than how i can do that?

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

Can I redirect the user after Submit? 10 months 1 day ago #268856

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 3264
  • Karma: 2
  • Thanks: 160
Hi,

Create an END SUBMIT piece.

Form Properties > Advanced Tab > More Options > Submit Pieces Tab Then click on "CUSTOM" in the END SUBMIT section and paste in the following code:
$this->execPieceByName('ff_InitLib');
JFactory::getApplication()->redirect('http://www.google.com');

Remember to replace the www.google.com with the correct URL for your page!

Also try to disable/delete Cache on your website before you test this.

Regards,
Mirko
The following user(s) said Thank You: johnbrad

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

Last edit: Post by Mirec.

Can I redirect the user after Submit? 1 week 5 days ago #279348

  • trichome3
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 1
  • Thanks: 0
Hi Mirec. I had a similar question. I followed as the steps exactly the way you have mentioned but I could not help the cause. Tell me if there is anything I have done wrong. Please keep noted that I have replaced the google with my own domain name. :(

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

Can I redirect the user after Submit? 1 week 5 days ago #279349

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 11753
  • Karma: 3
  • Thanks: 761
Hi,

did you add the code in End submit, becasue it should works :)

Please write here the code you have added in end submit, that I can help

Regards,
Tihana

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

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.050 seconds

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

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!