Skip to main content
Solved

Multiple options with max or min| Example: Select 3 out of 5 options

  • November 13, 2023
  • 4 replies
  • 527 views

Hi,

Would it be possible to create multiple options with a limited amount to choose.
For example, to pick 3 out of 5 options. Then when it reaches 3 options, you can’t select more.

Thank you very much for helping!

Best answer by mo_hamwi

it’s possible but complicated

you can achieve that by using variables,
for example:

you create Number variable:
x =0

then

on click action
select conditional
if x!=3
set variable x=x+1

then besides the if condition click on plus button to add more actions, here you can change the checkbox status from unchecked to checked

repeat same process for all check boxes
and DO NOT create multiple variables for each one

I hope this was clear

View original
This topic has been closed for replies.

4 replies

mo_hamwi
  • Active Member
  • 49 replies
  • November 14, 2023

can you give more description about your issue, it is not clear what you are talking about


  • Author
  • 2 replies
  • November 14, 2023

Thank you for your reply!

I want to create something like radio buttons that a user has to select 3 out of 5 buttons.
For example, when ordering a bowl of salad via mobile application, a user has a maximum of 3 choices of 5 mix-ins options.

I’m not sure if there is a way to limit a maximum buttons selected.
If the user already selects 3 choices, other 2 buttons can’t be selected.

Thank you again!


mo_hamwi
  • Active Member
  • 49 replies
  • Answer
  • November 14, 2023

it’s possible but complicated

you can achieve that by using variables,
for example:

you create Number variable:
x =0

then

on click action
select conditional
if x!=3
set variable x=x+1

then besides the if condition click on plus button to add more actions, here you can change the checkbox status from unchecked to checked

repeat same process for all check boxes
and DO NOT create multiple variables for each one

I hope this was clear


  • Author
  • 2 replies
  • November 14, 2023

Thank you very much!


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