How to make button not clickable after certain number of selection?

Hi all, I want to limit the user to only make 2 selection. After they selected two options, I dont want the button to interact. Are there ways to do this? Thank you in advance!

This is the screen.

1 Like

Hi, Ulfa.

One solution for this one is, you need to create three variants of the buttons: Default, Selected, and Disabled.

Using the Number variable, add a condition inside the default button

if numberVariable == 2
change to button to disabled

It almost has the same logic as how you make the button active when the number of items is selected. :grin: