How to hide options in the bot interface? (doubts)

cesario678

Client
Регистрация
10.03.2022
Сообщения
207
Благодарностей
13
Баллы
18
I would like to include some options, such as health, cinema, and prosperity. When one of them is selected, the others should disappear and specific options for the selected category should appear. When switching to another category, all fields should disappear and new options for the chosen category should show up. Can someone tell me how to do this? Does anyone have a code example I can use as a reference to get an idea of how to create this? Thanks.
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 622
Благодарностей
5 962
Баллы
113
It is possible to make such hidden options via html code, see Open code where you can edit html of bot ui interface.
 

cesario678

Client
Регистрация
10.03.2022
Сообщения
207
Благодарностей
13
Баллы
18
It is possible to make such hidden options via html code, see Open code where you can edit html of bot ui interface.
This HTML code that creates something which shows some options and hides others when certain choices are made — what would that code look like? Can you give me an idea of how it would work, and where I would place it?
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 222
Благодарностей
685
Баллы
113
Are you trying to put this as a dropdown on a page? Or are you trying to pick a drop down? Are you doing this in Input Settings? Kind of hard to tell what you are trying to do by your explanation
 

cesario678

Client
Регистрация
10.03.2022
Сообщения
207
Благодарностей
13
Баллы
18
Are you trying to put this as a dropdown on a page? Or are you trying to pick a drop down? Are you doing this in Input Settings? Kind of hard to tell what you are trying to do by your explanation
I want to do the following with input options would like the following: when I start my maker project, I have input settings. Let's say I have languages — English, Portuguese, and French — in a dropdown. Let's say I select the Portuguese option in this dropdown; automatically, other options appear, such as countries that speak Portuguese, cities in Portuguese-speaking countries, etc.
Then, if I choose English, it should show options like countries that speak English and cities in English-speaking countries. All these options should be variables. I just need an idea of how the script would look so I can build something like this. Did you understand?
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 222
Благодарностей
685
Баллы
113
Yes, I understand. Unfortunately I don't believe that is able to be done in the current Input Settings. You can do it in the Bot Interface, where there is a code editor. Maybe one of the developers will add it in for you. I'm just a carpenter and could probably do it, but it would require a lot of time to study. I did find a reference that maybe the developers could add into your situation. Here's a link to the W3 Schools example

Multi Select Dropdowns
 
  • Спасибо
Реакции: cesario678

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