Bot UI - Create a Conditional Button ?

valteau

Client
Регистрация
06.07.2018
Сообщения
133
Благодарностей
3
Баллы
18
@VladZen - I would like to display a Green button on Bot UI ONLY WHEN the robot has been launched and has obtained a success.
How can I do this on Bot UI or Input Setting ? It not matters. Thanks
 

Вложения

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 274
Благодарностей
5 857
Баллы
113
Unfortunately, there is no conditional button in BotUI.
If you know JavaScript you may play UserControl element and make it visible with some condition using JS.
But it requires some programming knowledge.
 

valteau

Client
Регистрация
06.07.2018
Сообщения
133
Благодарностей
3
Баллы
18
Is it like this we put variable {-Variable.Success-} in javascript from zennoposter ? Thanks for your help @VladZen
Код:
<html><body>
<style>
.hidden
{
display:none;
}
</style>



<script type="text/jascript">

function showhide()
{
var button = document.getElementByClassName("hidden");
var Success == true;
    if ({-Variable.Success-} == false) {
    hiddenbutton.style.display = "block";
    }
    else{
    hiddenbutton.style.display = "none";
    }
}
</script>







<a href="https://www.freecodecamp.org/"><button class="hidden">Obtenir la Version Complète </button></a>

</body></html>
 
Последнее редактирование:

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