46
Views
3
Comments
Is there a way to make the checkbox labels clickable?
Application Type
Reactive

Hello,

I am using checkboxes but I noticed the text labels are not clickable. I would want to check or uncheck the checkboxes when I click on the label also, as it is more user friendly. Is there a way to do this? 

Thank you

2018-10-29 08-31-03
João Marques
 
MVP

Hi Ga¨ëlle,


You can add an event OnClick and on the client action, swap the boolean variable value binded to the checkbox.


Kind Regards,
João

2021-08-27 09-13-17
Gaëlle Gaban

Hi João, thanks for your help!

It is indeed a very simple solution but I am wondering. I have already a full website with a lot of checkboxes and sometimes there are 7-8 of them in the same screen. Is there a way to avoid creating new Client Actions for every one of them? I get that I can use If conditions for the same screen but do you know if a single Action that can be reused in all the project is a possible solution?

2021-03-18 21-03-15
Benjith Sam
 
MVP

Hi Ga¨ëlle, 

I checked the same and its working as expected for me. Make sure that you are assigning the checkbox input widget to the label widget as shown below.

I hope this helps you!


Kind regards,

Benjith Sam

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.