How to create a popup that asks for user input?

bambinou

Client
Регистрация
22.08.2011
Сообщения
437
Благодарностей
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?
 

zortexx

Client
Регистрация
19.09.2011
Сообщения
2 520
Благодарностей
1 225
Баллы
113
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.
 

bambinou

Client
Регистрация
22.08.2011
Сообщения
437
Благодарностей
21
Баллы
18
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
 

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