Choose random value from dropdown menue

morpheus93

Client
Регистрация
25.01.2012
Сообщения
1 035
Благодарностей
237
Баллы
63
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
Команда форума
Регистрация
05.11.2014
Сообщения
22 189
Благодарностей
5 830
Баллы
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
Регистрация
25.01.2012
Сообщения
1 035
Благодарностей
237
Баллы
63
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
Команда форума
Регистрация
05.11.2014
Сообщения
22 189
Благодарностей
5 830
Баллы
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.
 
  • Спасибо
Реакции: morpheus93

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)