How to get checked property of RichWidgets\List_BulkSelect

How to get checked property of RichWidgets\List_BulkSelect

  

Hello,


How to get checked property of RichWidgets\List_BulkSelect usig javascript?

I tried below code: [But didn't work]

 alert('Is Checked : ' + BulkSelectName.checked);

Please help.

Hello Hemlata,


One way to access the List_BulkSelect using JavaScript would be to use the ID of the block. However, in OutSystems Platform the IDs of the widgets / blocks are generated dynamically and if you use a hard-coded value in your JavaScript it may not always work.


So it is better to use class selectors instead. Assuming that the header of your Table Records is the default TableRecords_Header, you can use the following code to reach the List_BulkSelect in the header:


$('.TableRecords_Header input')[0]


So your example can become:


alert('Is Checked : ' + $('.TableRecords_Header input')[0].checked);


I hope this helps.