Add column with checkbox

Hi there,

I wonder, if there a possibility to add a column with checkboxes to HoT and map checkbox with another property in a table (id for example). I need to select some checkboxes and have a selected id when submit.

Thanks in advance!

Hi @maryja.radziuk

Does the checkbox appear inside or outside the table? I am not sure if we share the same vision of the end result. Can you create a draft of drawing?

sorry for that kind of image, but the idea is to have a selected IDs when press validate button

I have made a sample demo that (as I assume) does the same job.

You can test it at http://jsfiddle.net/4s4hd7yr/

You would just need to add a logic when user changes the value via afterChange hook.

Thank you @aleksandra_budnik for provided answer.
This is slightly another idea.
What I would like to do is to add a column to the left, with html " input type=‘checkbox’ id=‘selectedSamples’" and render it like checkboxes. I want that selectedSamples variable contains all selected ids for further processing.

I’d be happy to help if you encounter any issues with the code or need any guidance.