Form Help

TOPIC:

Add system information in thank you page 8 months 3 weeks ago #271136

  • Topic Author
  • jdelvalle
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 17
  • Thanks: 0
I want to display the log record id in the thank you page.

If I use the variable {BF_RECORD_ID:value} in the fiel description in the section properties doesn't work.

My question is how I can incluye this information in the thak you page.

Thank you very much.

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

Add system information in thank you page 8 months 3 weeks ago #271138

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

oke, I need to test it and I will back to you as soon as possible!

If you have more questions, feel free to ask!


Regards,
Mirko

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

Add system information in thank you page 8 months 3 weeks ago #271139

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

please copy the following code into the End Submit Piece of the form:
$this->execPieceByName('ff_InitLib');
$db =& JFactory::getDBO();
$session = JFactory::getSession();


$query = 'SELECT MAX(id) FROM #__facileforms_records';
$db->setQuery($query);
$result = $db->loadResult();
$session->set('r_id', $result);

and this to the Before Form Piece of the form:
$session = JFactory::getSession();    
if (JRequest::getInt('ff_status', -1) == 0) {
$id = $session->get('r_id');    
echo 'Your record  id is: '.$id;
}

let me know, whether works!

If you have more questions, feel free to ask!

Regards,
Mirko

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

Last edit: Post by Mirec.

Add system information in thank you page 8 months 3 weeks ago #271142

  • Topic Author
  • jdelvalle
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 17
  • Thanks: 0
Hello Mirko, your code work very good.

But I have two questions more about this:

1. How I can include the field "r_id" with the rest content in the sesión description text?, I have more information to display

2. How I can include the field "r_id" in other new field in the form?

Thank you very much.

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

Add system information in thank you page 8 months 3 weeks ago #271143

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

please check this topic for both question:
crosstec.org/en/forums/41-breezingforms-...ank-page.html#246572

Regards,
Tihana

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

Add system information in thank you page 8 months 3 weeks ago #271144

  • Topic Author
  • jdelvalle
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 17
  • Thanks: 0
Sorry Tihana, but I can't open the topic I receive "403 FORBIDDEN".

Greetings.

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

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