Forums

How do the checkboxes work in the table list?

Fredolino 20 Apr, 2023
I wanted to use the "Toggle Selectors (Select all)" checkbox setting to activate (tick) the checkboxes for the individual table rows with the "Single Entry Selector" setting.
It worked with version 6. But what do I have to do in CF version 7?

F.
Fredolino 06 May, 2023
Does nobody have an idea?
Fredolino 07 May, 2023
Hello,

that's how I built it. My checkbox-all is in the table header.
It's probably a BUG in Chronoform 7, because it doesn't work there even if I place the checkbox all above the table.
Your example is built in CC 7 where it works.

Too bad...
Fredolino 09 May, 2023
Hello,
After some more experiments I figured out why the checkboxes work in your example and don't work in my spreadsheet.
It's very simple but a big problem.
There must not be a single field above the All-Select checkbox. Neither a container, no HTML field etc.
Can you test with your example. Just drag an empty form over the checkbox and it won't work anymore.
So it's a BUG. But again a big problem!
I wonder how many years we all still have to work with these many BUGS and whether there will be an update for version 7 at all. You don't hear anything anymore...
webbusteruk 09 May, 2023
Nope, no issue with that either.

I've put it in the table header, above the table, below the table, below the table and a HTML block, inside a container below the table and a HTML block, etc. Works just as expected.

If you find that it doesn't work in certain position, it could be:
  • There's another element with the same id.
  • There's JS/JQuery just above it that has an error, hence rendering the JS/JQuery after it invalid.


That's a few reasons I could think of for now. If you really want I can have a look at your form to figure out why it isn't working.

Edit: I've found the only thing that stops it working is if there is another form on the same page above it. I think this is due to Max's JS code which looks up the <form> tag when clicking the select all checkbox, hence only the first form gets selected.

Shouldn't be a difficult thing to fix, but Max seems to have a lot of things on his plate at the moment. In the meantime, you'll have to do a quick JQuery coding to do the select all. If you google it you should be able to create the function yourself.
Fredolino 09 May, 2023
I have now tested again.
You're right. Whenever a form is over the checkbox then it stops working.
A pity....
Fredolino 10 May, 2023
If the table with the checkboxes is placed in a form, then the checkbox selection works. And more forms can be inserted above the form with the table inside.
:-)
Fredolino 11 May, 2023
But if now a record or all records in the table are selected with a select-all checkbox, what is the where condition in the save data?
In version 6 this worked:
id/in = {data:gcb}

This no longer works in CF7.
Fredolino 17 May, 2023
1 Likes
Hello??

I can't get any further here. I can select the checkboxes, but what must be in the "where condition"?
In CF 6 it was easy:
id/in = {data:gcb}
And now in CF 7?? Does that work awkwardly only with a loop?
How does this work???

Has anyone used the selected all checkboxes?

F.
minakara 28 May, 2023
Bonjour,

Malgré les topic :
https://www.chronoengine.com/forums/topics/view/108839/how-to-add-a-selector-to-each-record-in-a-cf7-connection#p398251
https://www.chronoengine.com/forums/topics/view/109880/how-to-build-a-row-selector-in-cf7

Je n'ai pas réussi à récupérer les champs sélectionnés pour les traiter.
Quelqu'un aurait-il un exemple qui fonctionne à partager ?

Merci d'avance
Nadia
=============================================
Good morning,

Despite the topic:
https://www.chronoengine.com/forums/topics/view/108839/how-to-add-a-selector-to-each-record-in-a-cf7-connection#p398251
https://www.chronoengine.com/forums/topics/view/109880/how-to-build-a-row-selector-in-cf7

I failed to retrieve selected fields to process.
Does anyone have a working example to share?

Thanks in advance
Nadia
Max_admin 28 May, 2023
First the table must be inside a form, then you may right click the checkbox to find the checkbox field name and use it in your conditions
{data:checkbox_name}
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
minakara 28 May, 2023
Max thank you,

My idea is from a list, I check several rows and when I click the button 'valider' , I display (or I process) all the selected elements:
here is my test : https://u.pcloud.link/publink/show?code=XZcBpEVZXV2G5f9DBc4dKxxUvba3pjK2m6sk
screenshot : https://u.pcloud.link/publink/show?code=XZgBpEVZhwg1esLSGxRvELjrx53mPmdx46JX

I can't understand your answer in relation to my form, what condition should I put in this field?

Thank you for your precious help and your work..
Nadia
Max_admin 28 May, 2023
Hi Nadia,

Set the checkbox value to be the id field value from the table
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
minakara 28 May, 2023
Max,

I set the checkbox value with the id field value from the table,
but I only have the 1st value (id value) checked in result, how to have the other values ​​checked?

Thank's Nadia
You need to login to be able to post a reply.