Skip to main content
Question

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

  • January 18, 2024
  • 1 reply
  • 736 views

Ulfa

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
  • 394 replies
  • 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. 😁


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings