How to select a default value in the Checkbox group element?

I want a default value to be selected in the Checkbox Group element whenever a particular page is loaded.

@Paras_Gupta you encountered this use case recently. Can you provide a solution to the same?

Hello,
In my opinion to set a default value for a Checkbox Group element when a page loads, you can typically use JavaScript or the framework’s scripting capabilities. Ensure you have the correct syntax and event listener to initialize the checkbox group with the desired default selection upon page load.

I hope this will help you.

To archive so:-

1:- Create and map a task group on onPageCreate of that page on which checkbox is present.
2:- Using copy data copy the Code of the Value you want to show as default selected.

Note:- Don’t forget to reload that checkbox.

If you want to show the exact same value every time than better option would be to write the default code value you want to show in the default value field in the configurator.

default value :
{"code":"1", "value":"value"}