Form Help

TOPIC:

CheckBox Multiple loses data !? 8 months 4 weeks ago #273476

  • Topic Author
  • midimoinsdix
  • Offline
  • Senior Member
  • Senior Member
  • Registered
  • Posts: 100
  • Thanks: 0
I saw your post about it on the forum...

But if I need to have a dynamic choice and I don't know the number ?

May be you can grab this information on #_facileforms_subrecords with the ID Record and Name And Type 'checkbox group'... after Form soumission, and save (copy) all this ligne on a specific table ?

What did you thing about this way ? Is it possible ?

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

CheckBox Multiple loses data !? 8 months 4 weeks ago #273477

  • Mirec's Avatar
  • Mirec
  • Offline
  • Platinum Member
  • Platinum Member
  • Registered
  • Posts: 3262
  • Thanks: 160
Hi,

What did you thing about this way ? Is it possible ?


hmm, I need to check it, I didn't sure with 100%, first, I need to test it.

currently, I need to go out of my office, and I will be back on a Monday we will continue with this and we will find the solution for your needs.

Have a nice weekend! :)


Regards,
Mirko

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

CheckBox Multiple loses data !? 8 months 4 weeks ago #273478

  • Topic Author
  • midimoinsdix
  • Offline
  • Senior Member
  • Senior Member
  • Registered
  • Posts: 100
  • Thanks: 0
thank Mirco and good week end :)

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

CheckBox Multiple loses data !? 8 months 3 weeks ago #273491

  • Mirec's Avatar
  • Mirec
  • Offline
  • Platinum Member
  • Platinum Member
  • Registered
  • Posts: 3262
  • Thanks: 160
Hi,

for dynamic choice, hmm currently it is a little hard to get it, why do you not use standard BF table '_subrecords' ?

Let me know!

Regards,
Mirko

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

CheckBox Multiple loses data !? 8 months 3 weeks ago #273497

  • Topic Author
  • midimoinsdix
  • Offline
  • Senior Member
  • Senior Member
  • Registered
  • Posts: 100
  • Thanks: 0
Hi Mirko,
Thank's to not forget me !

Yes.
It's was my idea on Friday, especially since BF works like that ;-)

Can I use 'mysql_insert_id()' (or something like that) to retrieve the id of the record on #_facileforms_subrecords ?
I will put this on Piece Of Form > After form ?
And after I 'll can use ti receipt data and make a new resquest on my Specific Table...


On debug with BF how can I show my var request to test it ?

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

CheckBox Multiple loses data !? 8 months 3 weeks ago #273498

  • Mirec's Avatar
  • Mirec
  • Offline
  • Platinum Member
  • Platinum Member
  • Registered
  • Posts: 3262
  • Thanks: 160
Hi,


Can I use 'mysql_insert_id()' (or something like that) to retrieve the id of the record on #_facileforms_subrecords ?



please copy this code into the Before Form Piece under 'form's advanced tab > more options > Form Pieces':
$this->execPieceByName('ff_InitLib');
$db =& JFactory::getDBO();

$result = null;
$query = "SELECT id
FROM #__facileforms_records
WHERE id = (SELECT MAX(id) FROM #__facileforms_records)";
$db->setQuery($query);
$result = $db->loadObject();

foreach($result as $a){
ff_setValue('recordid', $a);
}

create a new hidden input element with the name recordid.

And in the element 'recordid' will be shown the last recordid

Regards,
Mirko

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

Moderators: ForumSupport
Time to create page: 0.060 seconds

Support Discord

Join our Discord and enter the Crosstec channels for live-support, chat forums and directly interacting with the community!

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!