Breezing form : Thanks page using BF variable

  • Gilles361
  • Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 209
  • Thank you received: 5

Gilles361 created the topic: Breezing form : Thanks page using BF variable

Hi,

I tried to use some BF variable in "Thanks page", but it got my "variable name" rather than theirs value!
See attached example...

Could you help please?
Thanks,
Gil
#220435
Attachments:
  • Posts: 2222
  • Karma: 44
  • Thank you received: 279

marko.bosnjak replied the topic: Breezing form : Thanks page using BF variable

Hello Gilles,

if you want to show form values on the thank you page, you'll have to use sessions.
Please take a look at the following example: crosstec.org/en/forums/41-breezingforms-...you-page.html#203000
Let me know if you need any help with implementing that.

Regards,
Marko

======================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
======================================
Need to renew Pro Support?
Buy Here!
======================================
Satisfied?
Consider a Membership!
======================================
Follow us on Facebook!
#220471
  • Gilles361
  • Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 209
  • Thank you received: 5

Gilles361 replied the topic: Breezing form : Thanks page using BF variable

Ok, I've inserted PIECE code
What code should I past in PAGE 2 (thanks page)?
$inscription
$randonnee

Thks, Gil
#220666
  • Posts: 2222
  • Karma: 44
  • Thank you received: 279

marko.bosnjak replied the topic: Breezing form : Thanks page using BF variable

Hi Gil,

you don't have to paste anything on the thank you page.
The echo statement in Before Form Piece will print the text on the thank you page.
Just make sure that the "Last page is the thank you page" option is checked.

Regards,
Marko

======================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
======================================
Need to renew Pro Support?
Buy Here!
======================================
Satisfied?
Consider a Membership!
======================================
Follow us on Facebook!
#220676
  • Gilles361
  • Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 209
  • Thank you received: 5

Gilles361 replied the topic: Breezing form : Thanks page using BF variable

Hi Marko,
It works "OK" if last page empty : echo my variables values + text BUT :

My "thanks page" should be full TEXT + LOGO, HTML message... See above PNG. So, I would like to "echo" my two variables values inside the page as per PNG. Attached html code.

File Attachment:

File Name: Codep_than...bles.txt
File Size:1 KB


Is it possible?

Thks, Gil
#220682
Attachments:
  • Posts: 2222
  • Karma: 44
  • Thank you received: 279

marko.bosnjak replied the topic: Breezing form : Thanks page using BF variable

Hello Gil,

yes, that is possible.
You would have to insert the whole code inside the echo statement, like this:
echo "<h2><img src='images/logos/codep78_320x110.png' alt='codep78 320x110' style='margin: 5px; float: right;' /></h2>
<h2>Inscription randonnée Codep 78 - ' Tous cycliste en Yvelines '</h2>
<p style='text-align: justify;'>Merci pour <strong>votre inscription à la randonnée</strong> <span style='color: #0000ff;'><strong><em>' Tous cycliste en Yvelines, sur le parcours&nbsp;$randonnee</em></strong></span> ' organisée par le comité département des Yvelines de la FFCT (Fédération française de cyclotourisme).</p>
<p>Vous allez recevoir une <strong>confirmation d'inscription par courriel</strong> (email).</p>
<h4>Votre <strong><span style='color: #000000;'>numéro d'inscription est le n°$inscription </span></strong></h4>
<p>&nbsp;</p>
<p><strong><span style='color: #000000;'></span> </strong></p>
<p>Pour plus d'information consulter :</p>
<ul style='list-style-type: disc;'>
	<li>Détails de la randonnée</li>
	<li>Parcours de la randonnée</li>
</ul>
<p>Bien sportivement,</p>
<p>Le CODEP 78</p>
<p>Comité départemental des Yvelines - FFCT</p>
<p>Courriel : <a href='mailto:tourisme@codep78-ffct.org'>tourisme@codep78-ffct.org</a></p>";
}
Just be careful when it comes to quotation. The echo statement uses double quotes, so it must begin and end with a double quote. Every quote inside the echo statement must be a single quote.
Or the other way around. If echo statement starts and ends with a single quote, all quotes inside it must be double quotes.
Eventually, you could use a backslash to escape special characters within quotes, like this:
\" or \'
Also, I replaced {randonnee:value} with $randonnee and {inscription:value} with $inscription.
Try it out and let me know if it works.

Regards,
Marko

======================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
======================================
Need to renew Pro Support?
Buy Here!
======================================
Satisfied?
Consider a Membership!
======================================
Follow us on Facebook!
#220691
Moderators: ForumSupporttomeperica
Time to create page: 0.197 seconds

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

Live Support Chat Opened!

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

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for just 49! (Summer Sale)

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

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 to receive live support and talk directly to the team!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here