Page 1 of 1

popup script webform and at the same time

PostPosted: Wed Jan 08, 2014 8:52 am
by intrepid
Hello,
I use VICIDIAL for almost a year and everything works fine for now.
Thank you to the community.
I use a script that is automatically displayed in a tab when an agent receives a call.
what I want to do is display the script and web form at the same time during the call.
Thank you in advance.

Goautodial 2.0
Vicidial
VERSION: 2.6-392a svn
BUILD: 130102-1135
Asterisk-1.4.27.1-1
Vtiger version 5.1.0
Centos 6.3
digium card : TE122

Re: popup script webform and at the same time

PostPosted: Wed Jan 08, 2014 12:39 pm
by williamconley
Then you'll need to put one inside the other. Either you'll need to put the text of the script into your web form (it has text fields) or you'll need to create a php page capable of managing the form data and use that as an iframe in the script (since scripts themselves are not capable of editing the data).

And before you begin, I strongly suggest an upgrade to the latest stable (2.7) or the latest SVN (2.8) of Vicidial.

Re: popup script webform and at the same time

PostPosted: Thu Jan 09, 2014 10:37 am
by intrepid
thank you for your answer
and if I want to display a webform and webform with custom field
is there a tutorial for the upgrade

Re: popup script webform and at the same time

PostPosted: Thu Jan 09, 2014 4:59 pm
by williamconley
Webforms don't have "Custom Fields" as that would assume that there is a "Standard Field" in a web form. Web forms exist outside Vicidial. They are web pages you create and place in the campaign's "web form" or "web form 2" when modifying the Campaign definition in the Vicidial GUI ... as a URL. Then (at a moment based on configuration, or when the agent pushes the web form button) the agent will have a Web Form Popup with that URL, with a page created by YOU. So ... inside that web page will be ALL custom content created by you.

The methodology for creating that web form is based on php and html. The data that will be "fed" to the web form is available in one of many ways: Simplest is to make one and push web form as an agent, get the popup and see what appears in the URL (this would have the added data fed to the web form, available for manipulation, in addition to the URL you specified). You can also use any of that information to reach into mysql and get more information. You can also reach out to any other location of data for more (once you understand php, you'll get that).

The syntax is also available in the Vicidial Manager's Manual. The Script Editor contains a nifty dropdown box as a shortcut for some of the fields that can be used. And there are examples in the /srv/www/htdocs/vicidial and/or agc folders, if I recall correctly. :) This same methodology applies to a certain degree to dispo_url and start/end url entries (and even to scripts).

If you push the ( ? ) next to any of these fields in the admin GUI while editing a Campaign, you'll also get some helpful information on each. Consider them all at once, as they each have their uses and they are interchangeable in some cases and it is helpful to know how to use all of them ... at the proper moment, as they are similar in usage.

Re: popup script webform and at the same time

PostPosted: Fri Jan 10, 2014 10:18 am
by mflorell
It would be much easier just to use the campaign's Timer Action to trigger the webform 1 second after the call arrives. I've done this on several client systems that wanted both the script and webform to open on receipt of a ccall by the agent.

Re: popup script webform and at the same time

PostPosted: Fri Jan 10, 2014 10:08 pm
by williamconley
That's beautiful. I never knew you could popup with the timer function. I just keep falling farther and farther behind.

Re: popup script webform and at the same time

PostPosted: Mon Jan 13, 2014 10:29 am
by intrepid
thank you williamconley
mflorell
how to apply this

Re: popup script webform and at the same time

PostPosted: Wed Jan 15, 2014 2:08 am
by williamconley
intrepid wrote:thank you williamconley
mflorell
how to apply this

you would either modify your campaign and push the ( ? ) in the Timer function fields to find out how they work ... OR you would download the manual to see if there is a step by step section. Either way should have the same results.