Skip to main content
Ulfa
January 18, 2024
Question

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

  • January 18, 2024
  • 1 reply
  • 1087 views

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.

This topic has been closed for replies.

1 reply

Raphael_M
Power Member
January 18, 2024

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. 😁