Hello community!
I have a dynamic table on my page (content is not retreived by a dataset but by an uploaded file) and in each row I added a checkbox (with html, see code below).
How can I pass the checked status of the checkbox to the velo code on my site?
The goal of this checkbox is to determine if the values of the selected row should later be saved to a data collection.
Code of the dynamic table:
$w ( “#tableIcs” ). columns = [
{
“id” : “col1” ,
“dataPath” : “name” ,
“label” : “Name” ,
“width” : 420 ,
“visible” : true ,
“type” : “string” ,
},
{
“id” : “col2” ,
“dataPath” : “startDate” ,
“label” : “Start” ,
“width” : 80 ,
“visible” : true ,
“type” : “string” ,
},
{
“id” : “col3” ,
“dataPath” : “endDate” ,
“label” : “Ende” ,
“width” : 80 ,
“visible” : true ,
“type” : “string” ,
},
{
“id” : “col4” ,
“dataPath” : “selectBox” ,
“label” : “Eintragen?” ,
“width” : 80 ,
“visible” : true ,
“type” : “richText” ,
}
];
holidays . forEach ( ( row ) => {
let myRowId = row . id ;
row . selectBox =
‘
} );
$w ( "#tableIcs" ). rows = holidays ;
The table with the checkbox:
Any ideas?
Thanks!