TOPIC:

Feldwerte an andere URL schicken und in neuem Browsertab öffnen 2 years 4 weeks ago #258653

  • Topic Author
  • kurt76
  • Offline
  • New Member
  • New Member
  • Registered
  • Posts: 10
  • Thanks: 0
Hi,
habe gerade das Beispielscript von Euch unter crosstec.org/de/support/online-dokumenta...re-url-schicken.html erfolgreich bei einem Formular angewendet. Dabei wird der Benutzer direkt auf die neue URL weitergeleitet.

Dazu meine Frage: Gibt es eine Möglichkeit, dass sich die URL in einem neuen Browsertab öffnet und die Formularseite einfach auf eine Dankesseite springt?

Vielen Dank
Kurt

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

Feldwerte an andere URL schicken und in neuem Browsertab öffnen 2 years 4 weeks ago #258656

  • Mirec's Avatar
  • Mirec
  • Offline
  • Platinum Member
  • Platinum Member
  • Registered
  • Posts: 3262
  • Thanks: 163
Hello,


In your form Go to Advanced -> More options -> Submit pieces on End Submit, select Custom, and in the below code box insert this code :
$this->execPieceByName('ff_InitLib');
ff_redirect('http://mysite.com/newpage.html', 'blank');


Kind regards!
Mirko

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

Last edit: Post by Mirec.

Feldwerte an andere URL schicken und in neuem Browsertab öffnen 2 years 4 weeks ago #258661

  • Topic Author
  • kurt76
  • Offline
  • New Member
  • New Member
  • Registered
  • Posts: 10
  • Thanks: 0
Hi Mirko,
danke für Deine Antwort, aber damit leitet das Formular ja einfach nur auf eine beliebe externe Seite in einem neuen Browsertab weiter. Ich möchte aber dass ein neuer Tab mit den übergebenen Feldwerten (wie in crosstec.org/de/support/online-dokumenta...re-url-schicken.html beschrieben) aufgeht und paralell die Dankesseite des Formulars angezeigt wird. Kannst Du mir da weiterhelfen?
(Habe mich vielleicht etwas missverständlich ausgedrückt.)

Danke
Kurt

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

Feldwerte an andere URL schicken und in neuem Browsertab öffnen 2 years 4 weeks ago #258662

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

like this:
$this->execPieceByName('ff_InitLib');
echo '
<form name="myresubmit" action="YOUR-TARGET-URL" target="_blank">
     <input type="hidden" name="somefield" 
     value="'.htmlentities( ff_getSubmit('somefield') ).'"/>
     <input type="hidden" name="somefield2" 
     value="'.htmlentities( ff_getSubmit ('somefield2') ).'"/>
     <input type="hidden" name="somefield3" 
     value="'.htmlentities( ff_getSubmit ('somefield3') ).'"/>
     <!-- and so on ... -->
</form>
<script>
     document.myresubmit.submit();
</script>
';
 
exit;

Hope this helps

Regards,
Tihana

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

Feldwerte an andere URL schicken und in neuem Browsertab öffnen 2 years 4 weeks ago #258663

  • Topic Author
  • kurt76
  • Offline
  • New Member
  • New Member
  • Registered
  • Posts: 10
  • Thanks: 0
Hi Tihana,
das geht schon in die richtige Richtung. Manchmal ist es einfacher als man denkt ;-)Vielen Dank.

Allerdings wird nun beim Abschicken zwar das neue Tab mit den übergebenen Feldwerten geöffnet, aber die zweite Seite des Formulars - sprich der Dankestext - wird nicht angezeigt, sondern stattdessen eine weisse Seite im Browser. Hast Du dazu evtl. auch eine Lösung?

Danke schon mal vorab
Kurt

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

Feldwerte an andere URL schicken und in neuem Browsertab öffnen 2 years 4 weeks ago #258664

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

are you using last page is thank you page (page for thank you), or you are using redirection with specific link?

Regards,
Tihana

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

Moderators: ForumSupport
Time to create page: 0.110 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!