547
Views
10
Comments
Solved
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

2022-01-13 08-29-52
Saravanan Santhanam
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
2021-06-02 20-50-04
Márcio Carvalho

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

UserImage.jpg
Ellakkiya

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

2021-01-05 18-22-18
andrew mahfouz

if any demo for this 

2020-11-25 10-45-32
Mostafa Othman
Champion

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

2022-01-13 08-29-52
Saravanan Santhanam

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
2021-01-05 18-22-18
andrew mahfouz

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
UserImage.jpg
Ellakkiya

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
2022-01-13 08-29-52
Saravanan Santhanam
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
2024-01-31 05-29-41
Akshay Deshpande

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
UserImage.jpg
Kalyan Pasupuleti

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.

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