how can i select only one of check box
Question
Application Type
Reactive

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

Solution

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

DroppableFileUploadCustom09072021.oml

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!

Regards,

Ellakkiya.S

if any demo for this 

Hi Andrew,

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

Hi Andrew,

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

Regards,

SaravananSanthanam.

CHECKBOX09072021.oml

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

test1.oml

Hi andrew mahfouz,

I saw your oml, you haven't pass the id correctly

I have attached the oml and url

Hope this helps!

Regards,

Ellakkiya.S

test1.oml

Solution

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

DroppableFileUploadCustom09072021.oml

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

Checkbox.oml

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