BF display Element on Last Page

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

Gilles361 created the topic: BF display Element on Last Page

Hi,
I've a multiple pages form with a summary section (3 x 'summarize' elements) on SUBMIT Page. Once submit,
How may I display these 'summarize' elements on last page too?

Thanks, Gilles
#234557
  • Posts: 2282
  • Karma: 84
  • Thank you received: 306

mihaela replied the topic: BF display Element on Last Page

Hello,

The form elements can be displayed after submit, but since it is not a default feature it requires custom coding.

Please take a look at this topic crosstec.org/en/forums/3-breezingforms-f...-in-form.html#228158 to see how you could get the form values after submission of the form.

Regards,

Mihaela
#234564
  • Gilles361
  • Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 166
  • Thank you received: 5

Gilles361 replied the topic: BF display Element on Last Page

Hi Miheala,
I've tried your solution but it's not what I would like, see result on picture "BF_last-page_Summary_Text_2.png", "heavy programming, to display Text line.

I would like to achieve :"BF_last-page_Summary_1.png", position "1", or position "2" summary information.

I'm displaying them on submit page, but would like to confirm on LAST PAGE.
Is it possible without in depth coding, or not ?

Thanks, Gil
#234854
Attachments:
  • Posts: 2282
  • Karma: 84
  • Thank you received: 306

mihaela replied the topic: BF display Element on Last Page

Hello,

So now the last page of your form (after submission) has the "Thank you D.." text at the beginning and you would like to style it differently.

It isn't possible to achieve what you want without coding.

I will show you an example of how you can fetch the values of multiple fields and then put them as content in paragraph, for example.
In this example names of fields in the form are "a", "b" and "c"

First in Edit on last page of our form go to Tools > Source code and put there this line of code:
<p id="parag"> </p>

In End Submit pieces you should put this piece of code:
$this->execPieceByName('ff_InitLib');
$session = JFactory::getSession();

//Get firstname value
$a = ff_getSubmit('a');
$b = ff_getSubmit('b');
$c = ff_getSubmit('c');

//Set session value
$session->set('fielda', $a);
$session->set('fieldb', $b);
$session->set('fieldc', $c);

Then in AFTER Form pieces but this code:
$session = JFactory::getSession();
if( JRequest::getInt( 'ff_status', -1 ) == 0 ){
$val = $session->get('fielda', $a);
$val2 = $session->get('fieldb', $b);
$val3 = $session->get('fieldc', $c);

  echo '<script type="text/javascript">
<!--
document.getElementById("parag").innerHTML = \'<span>COURSE:  '.$val.' , Categorie:  '.$val2.' , Coureur:  '.$val3.'</span>\';  
//->
</script>';

// echo 'Thank you '.$val;
}

Let me know whether this helps you achieve what you want.

Regards,

Mihaela
#234865
  • Gilles361
  • Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 166
  • Thank you received: 5

Gilles361 replied the topic: BF display Element on Last Page

Hi Mihaela,
Great, I've displayed my 3 elements values.

Now, I need to add some "styles" to last page. I get some info from previous question: crosstec.org/en/forums/3-breezingforms-f...ing-bf-variable.html

I like BF summary STYLE (see bottom image "demande d'engagement validée" of previous png).
Is it possible to have such style, with my Elements values inside this summary
AT TOP
followed by last page "edit" Message & style

Thks, Gil
#234887
  • Posts: 2282
  • Karma: 84
  • Thank you received: 306

mihaela replied the topic: BF display Element on Last Page

Hello again,

It is possible.

Have you already styled the "Thank you page" as in the picture attached?
If that is the case, but the values are missing, you could for example set in right places of thank you page content 3 span elements with different ID's in the right places and then fill them in with "$val", "$val2" and "$val3".

Let me know whether you have managed to do so.

Regards,

Mihaela
#234935
Moderators: ForumSupporttomeperica
Time to create page: 0.078 seconds

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

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€

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!

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