popup script webform and at the same time

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

popup script webform and at the same time

Postby intrepid » Wed Jan 08, 2014 8:52 am

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
intrepid
 
Posts: 21
Joined: Thu Oct 24, 2013 7:59 am

Re: popup script webform and at the same time

Postby williamconley » Wed Jan 08, 2014 12:39 pm

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.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: popup script webform and at the same time

Postby intrepid » Thu Jan 09, 2014 10:37 am

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
intrepid
 
Posts: 21
Joined: Thu Oct 24, 2013 7:59 am

Re: popup script webform and at the same time

Postby williamconley » Thu Jan 09, 2014 4:59 pm

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.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: popup script webform and at the same time

Postby mflorell » Fri Jan 10, 2014 10:18 am

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.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: popup script webform and at the same time

Postby williamconley » Fri Jan 10, 2014 10:08 pm

That's beautiful. I never knew you could popup with the timer function. I just keep falling farther and farther behind.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: popup script webform and at the same time

Postby intrepid » Mon Jan 13, 2014 10:29 am

thank you williamconley
mflorell
how to apply this
intrepid
 
Posts: 21
Joined: Thu Oct 24, 2013 7:59 am

Re: popup script webform and at the same time

Postby williamconley » Wed Jan 15, 2014 2:08 am

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.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 72 guests