Choose random value from dropdown menue

morpheus93

Client
Joined
Jan 25, 2012
Messages
1,068
Reaction score
257
Points
83
I need to choose a random value from a dropdown menue with variable amount of values. For example I choose Audi in the first dropdown and then there are 20 different models available in the second dropdown where I want to take a random one. If I choose BMW there a 30 different choices where I like to select random one and so on...

What's the easiest approach for that?

Thank you :-)
 

VladZen

Administrator
Staff member
Joined
Nov 5, 2014
Messages
22,829
Reaction score
6,040
Points
113
I would recommend you using Switch logic action.
And depending on first choice in main menu, make logic for other dropdown lists.
 

morpheus93

Client
Joined
Jan 25, 2012
Messages
1,068
Reaction score
257
Points
83
I would recommend you using Switch logic action.
And depending on first choice in main menu, make logic for other dropdown lists.
Okay, I understand what you mean. But if the number(quantity) of values in the dropdown is not the same every time and I want to be sure to select one random value out of them, how can I make that?
 

VladZen

Administrator
Staff member
Joined
Nov 5, 2014
Messages
22,829
Reaction score
6,040
Points
113
Okay, I understand what you mean. But if the number(quantity) of values in the dropdown is not the same every time and I want to be sure to select one random value out of them, how can I make that?
Parse number of choice at first, then choose some variant depending on parsed number of choices.
 
  • Thank you
Reactions: morpheus93

Users Who Are Viewing This Thread (Total: 1, Members: 0, Guests: 1)