TOPIC:

BF display Element on Last Page 1 year 5 months ago #234557

  • Topic Author
  • Gilles361
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 242
  • Thanks: 6
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

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

BF display Element on Last Page 1 year 5 months ago #234564

  • mihaela
  • Offline
  • Developer
  • Developer
  • Posts: 3128
  • Karma: 105
  • Thanks: 415
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

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

BF display Element on Last Page 1 year 4 months ago #234854

  • Topic Author
  • Gilles361
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 242
  • Thanks: 6
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
Attachments:

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

BF display Element on Last Page 1 year 4 months ago #234865

  • mihaela
  • Offline
  • Developer
  • Developer
  • Posts: 3128
  • Karma: 105
  • Thanks: 415
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

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

BF display Element on Last Page 1 year 4 months ago #234887

  • Topic Author
  • Gilles361
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 242
  • Thanks: 6
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

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

BF display Element on Last Page 1 year 4 months ago #234935

  • mihaela
  • Offline
  • Developer
  • Developer
  • Posts: 3128
  • Karma: 105
  • Thanks: 415
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

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

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.048 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

Summer Sale!

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!