This topic is locked

How to get value from "Checkbox list with allow multiple selection"?

8/12/2024 6:35:16 AM
PHPRunner General questions
W
wehaye author

How to get the value of "checkbox list that check allow multiple selection" and also how to set the value?

To get the value, I have tried with getValue() but it doesn't work.
Example:

var itemType = Runner.getControl(pageid,'item_type');
console.log(itemType.getValue());

To set the value, I have also tried setValue(); with comma directly, for example: setValue(1,2,3,4) or with array, for example: setValue([1,2,3,4]) is also not successful.

Please guidance from seniors and admins.
Thank you.