Form Help

TOPIC:

Add system information in thank you page 1 year 2 weeks ago #271136

  • Topic Author
  • jdelvalle
  • Offline
  • New Member
  • New Member
  • Registered
  • 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 1 year 2 weeks ago #271138

  • Mirec's Avatar
  • Mirec
  • Offline
  • Platinum Member
  • Platinum Member
  • Registered
  • Posts: 3262
  • Thanks: 163
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 1 year 2 weeks ago #271139

  • Mirec's Avatar
  • Mirec
  • Offline
  • Platinum Member
  • Platinum Member
  • Registered
  • Posts: 3262
  • Thanks: 163
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 1 year 2 weeks ago #271142

  • Topic Author
  • jdelvalle
  • Offline
  • New Member
  • New Member
  • Registered
  • 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 1 year 2 weeks ago #271143

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 780
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 1 year 2 weeks ago #271144

  • Topic Author
  • jdelvalle
  • Offline
  • New Member
  • New Member
  • Registered
  • 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.059 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!