How can I select only one check box?
If I have a list of checkboxes, I need the user to select only one of the checkboxes
if any ides for this
Hi Andrew,
To achieve this via component it needs mild customization. Please find the customized component OML for your approach.
URL : https://saravanan-gamechanger.outsystemscloud.com/TEST/CheckBox?_ts=637614556804649510
Regards,
Saravanan
You should use radio groups instead of checkboxes. The radio group allows you to just select one inside a set of radio buttons. What do you want to do with the list of checkboxes?
Best regards,
Márcio
Hi andrew mahfouz,
As you mentioned list of checkbox, it must be the aggregate source or local variable of list datatype
For aggregate,
Step1 : Create a calculate attribute in aggregate
Step2 : Bind the current calculated attribute to the checkbox
For local variable of list datatype,
Step1 : create a attribute in the structure of boolean datatype
Step 2: Bind the current attribute to the checkbox
Hope this helps!
Ellakkiya.S
if any demo for this
As Marcio said its better to use radio button group.
But if its mandatory to use checkbox you can you will need to make use of On Change event of checkbox if you bind list of Boolean to checkboxes when select one to loop this list and check other checkboxes variable to false
I did a workaround for your scenario, to handle Checkboxes act like radio buttons in a list. Please find the OML and URL for your reference.
URL: https://saravanan-gamechanger.outsystemscloud.com/TEST/CheckBox?_ts=637613910865823057
SaravananSanthanam.
when i select one its select all check box
I need the same concept that you applied in this link
https://saravanan-gamechanger.outsystemscloud.com/TEST/CheckBox?_ts=637613910865823057
on this link
https://personal-gvhrgamr.outsystemscloud.com/test1/Screen1?_ts=637614405782381813
like as an attachment OML
I saw your oml, you haven't pass the id correctly
I have attached the oml and url
Hello Andrew,
I have implement the same scenario, for your reference I have attached the URL as well as OML.
https://akshayproject.outsystemscloud.com/Checkbox/CheckBox?_ts=637614177297997125
Hope, this will helps you.
Thanks and Regards,
Akshay Deshpande
Hii andrew mahfouz,
You can achieve this using checkbox itself,
just check the given OML below
I think surely you can get what you want.