How can i clear a checkboxtree component?

Hello!
Iam using a checkbox tree to select receipients base on groups. Is there any way to clear the selected options after I submit my form?

@Gabicus If the checkbox tree is contained within a form, you can use an Event Handler to clear the form after the form has been posted or whatever query is run to submit the form..

This will clear all other field but doesnt work for checkbox tree.

How about checkboxTree1.setChecked([]) ?

2 Likes

@matth you are correct

2 Likes

Thanks @ScottR and @matth it worked