Form Help

TOPIC:

CheckBox Multiple loses data !? 2 weeks 5 days ago #273446

  • Topic Author
  • midimoinsdix
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 73
  • Thanks: 0
Hi
I try to use checkBox multiple on my form with Integrator to a specific Table, but there is only one value recorded (only the last !) while several are selected !?

What is surprising is that in the list of records all the values ​​are present in the same fields !
And on #_facileforms_subrecords, there are all data (one by ligne )


Where have the other choices gone on my SpécifiTable with Integrator ?

Can we save all the choices in the same field, separated by commas?

Thank's for your support.

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

CheckBox Multiple loses data !? 2 weeks 5 days ago #273450

  • Mirec's Avatar
  • Mirec
  • Away
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 2486
  • Karma: 2
  • Thanks: 135
HI,

oke, I will take a look at your problem when I back from break!

If you have more questions, feel free to ask!

Update!

Can we save all the choices in the same field, separated by commas?


I think that I can do it, please give me a little time for testing and I will back to you!




Regards,
Mirko

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

Last edit: Post by Mirec.

CheckBox Multiple loses data !? 2 weeks 5 days ago #273451

  • Mirec's Avatar
  • Mirec
  • Away
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 2486
  • Karma: 2
  • Thanks: 135
Hi,

solved!
Please download->unzip->and install it (BF->Configuration->Package Installer->select this xml file->Install Package).

Please create one hidden element where will be a recorded value from the checkbox to users can not see it, and you can use it in the integrator.

If you get to stuck, let me know and I will help you!

You can find the code in the advanced checkbox element in section 'Action Script'

the code is :
function ff_a_action(element, action)
{
    switch (action) {
        case 'change':

const vals = [];
          opts = JQuery("[name=\"ff_nm_a[]\"]");
          for (o = 0; o < opts.length; o++)
          if (opts[o].checked)
          {
               vals.push( opts[o].value);
          }

ff_getElementByName('b').value=vals.join(', ');

            break;
        default:;
    } // switch
} // ff_a_action


opts = JQuery("[name=\"ff_nm_a[]\"]"); - instead 'a' insert name of element checkbox

ff_getElementByName('b').value=vals.join(', '); - instead 'b' insert name of hidden elemnt.

Selected values should be shown in the hidden element separated with commas



File Attachment:

File Name: mypck_00127.zip
File Size:6 KB


regards,
Mirko
Attachments:

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

CheckBox Multiple loses data !? 2 weeks 4 days ago #273454

  • Topic Author
  • midimoinsdix
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 73
  • Thanks: 0
Thank you Mirko
It's clever!

But it does not work ! I must forget something !?

I have left the field visible for the moment to see it work but there is nothing displayed in it?

1- I installed the XML package
2- I copy your code in the advanced checkbox element in section 'Action Script' AND I check 'modified'
3- I modified opts = JQuery("[name=\"ff_nm_listAtelierGraphique[]\"]");
(-> listAtelierGraphique is the name of my checkBox Multiple)
4- I modified ff_getElementByName('hidenfield').value=vals.join(', ');
(->hidenfield is the name of my hidenfield!)

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

CheckBox Multiple loses data !? 2 weeks 4 days ago #273457

  • Mirec's Avatar
  • Mirec
  • Away
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 2486
  • Karma: 2
  • Thanks: 135
Hi,

can you please send the backend link and access data I will connect to your server and solve all by email ma@evolutio.hr

did you change in this part of the code

function ff_a_action(element, action) -> 'a' with name of your checkbox name ?


regards,
Mirko

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

Last edit: Post by Mirec.

CheckBox Multiple loses data !? 2 weeks 4 days ago #273460

  • Topic Author
  • midimoinsdix
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 73
  • Thanks: 0
Yes I do !?

This message contains confidential information

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

Moderators: ForumSupport
Time to create page: 0.054 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

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!