How to create a popup that asks for user input?

  • Автор темы Автор темы bambinou
  • Дата начала Дата начала

bambinou

Client
Регистрация
22.08.2011
Сообщения
442
Реакции
21
Баллы
18
Hello,

On certain registrations, the user is being asked to answer a question. I would like to output the popup with the question so the user answers it from the BOT UI(Zennobox) and I use the variable in the template.
I looked at the javascript prompt and warnings but none of them let me take the variables and reuse them in my script.

Any idea how to do this please?
 
Hello,

On certain registrations, the user is being asked to answer a question. I would like to output the popup with the question so the user answers it from the BOT UI(Zennobox) and I use the variable in the template.
I looked at the javascript prompt and warnings but none of them let me take the variables and reuse them in my script.

Any idea how to do this please?

Try this.
 
Thanks,

I tried the code on the page but still struggle.

What I have at the moment works but I owuld need a tiny bit of help to make it better please.
Based on the example you gave me, I created this code:

C#:
Развернуть Свернуть Копировать
System.Windows.Forms.Form F = new System.Windows.Forms.Form();

System.Windows.Forms.TextBox mobileCode = new System.Windows.Forms.TextBox();
mobileCode.Location = new System.Drawing.Point(50,50);
mobileCode.Width=200;
F.Controls.Add(mobileCode);

F.ShowDialog();

project.Variables["Mobile_sms"].Value = mobileCode.Text;

return mobileCode.Text;

Any idea how to add a button called "Send code" which closes the whole window please?
I am not too sure in vb.net

Thanks
 

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