21
Views
6
Comments
Solved
Can I make a list behave like a radio group?
Application Type
Reactive

Hi everyone.

I have a list that looks like this:

Where each of the elements is just a tag with an Icon and an Expression inside of it.

I want this list to behave like a radio group: I want the user to only be able to select ONE option, and when they select another one their previous choice is unselected.

However, I've been having a lot of trouble trying to make that happen. Anyone got any good ideas for me?

Thanks in advance.

Rank: #4394
Solution

Hey, I managed to solve my problem.

Turns out I simply wasn't assigning the value the user selected to any value...I can't believe I was so distracted.

Thanks for the help.

Rank: #172

Hi Yizuhi, what if instead of using radio group widget, you just created an onClick event in your cell.

This way you can make the onClick define some variable with the current line value.

When you click one row it will override the previous one.

This would work for you?


Cheers and Regards,

RR :)

Rank: #172

Made a sample for you...

Take a look:


When I click in the value my title change.

After you publish may take some seconds to populate the value to show in the screen.


Hope it helps,

RR :)

ListRadioLike.oml

Rank: #172

Hey Yizuhi,

Were you able to achieve your goal?

If not, don't hesitate to ask here and we can try to find another solution for you!

Cheers and Regards,

RR :)

Rank: #4394
Solution

Hey, I managed to solve my problem.

Turns out I simply wasn't assigning the value the user selected to any value...I can't believe I was so distracted.

Thanks for the help.