Page 1 of 1

Webforms

PostPosted: Thu Aug 30, 2012 10:56 am
by philo
I'm wondering how to go about reflecting data on the dialer to a web form, such as name, phone number, address.
I'm reading on the help section about VAR being next to the address where the form is, but I'm not sure how it works.

I'm wondering could give me a head start.

VERSION: 2.4-327a
BUILD: 110801-0833

Re: Webforms

PostPosted: Thu Aug 30, 2012 5:36 pm
by fibres
The webform link by default sends a load of data in the http link. If you put a web address into the webform on the campaign and click the webform from within a live call you will see all the variables it sends.

We have a webform which reads a load of those and uses it in our custom web form.

Regards

Re: Webforms

PostPosted: Fri Aug 31, 2012 1:05 pm
by callcrazy
Code: Select all
VARhttp://domain.com/path/to/webform.php?source_id=--A--source_id--B--&lead_id=--A--lead_id--B--

Re: Webforms

PostPosted: Wed Sep 05, 2012 5:53 pm
by gers55
Depends where web form is hosted . If it is a form you created yourself on your webserver/website host you will still need some server side code to populate the fields . If this is the case i can give you some code to insert into the html / php page your form is on.

If form hosted on third party ie. jotform just use the solutions listed above.

Re: Webforms

PostPosted: Thu Sep 06, 2012 1:57 am
by noworldorder
I have a webform I made with google docs. Is there a way to populate such a form with data from Vicidial?

Re: Webforms

PostPosted: Fri Mar 29, 2013 8:51 pm
by williamconley
if it is capable of accepting GET or POST data, you need only know the names of the fields to "grab". if you leave the web form blank, it will send this information to the vicidial.sourceforge.net page and display the names of the fields ... and it will also populate the URL with all of them. additionally, the help section for the script creator page has the field names ...

Re: Webforms

PostPosted: Sun Jun 12, 2016 10:31 am
by bghayad
Hello;

What if the form already built, how it will understand the --A-- and --B-- that are existed as variable limiters?
In other words, why I do not send the link as following:
Code: Select all
VARhttp://domain.com/path/to/webform.php?field_1=source_id&field_2=lead_id


Where is the problem in this?
Or the --A-- and --B-- are parts of the variable it self?

Regards
Bilal
[edited for readability by adding 'code' section = williamconley]

Re: Webforms

PostPosted: Sun Jun 12, 2016 5:52 pm
by williamconley
When you push the web form button, the Vicidial system replaces --A--phone_number--B-- with the phone number. Thus:

Code: Select all
...&client_phone=--A--phone_number--B--&city=...

becomes
Code: Select all
...&client_phone=3522690123&city=

The web page that this URL points to would then need to be expecting "client_phone=3522690123" in the URL. The --A--phone_number--B-- would never be seen by the target web server.

Re: Webforms

PostPosted: Tue Jun 14, 2016 3:34 pm
by bghayad
Thank you a lot for declaration.
And in this case, it is assumed that client_phone is a variable that is used in the web form that I need to call it so the web form will understand it.

I have really another question and maybe it might be needed to be separated question, but because we are talking to web form, so it could be related.
Actually I am trying to use web form or to use CRM Popup login to be able to login for vtigercrm once the agent logged in (using CRM Popup login) or to fetch the customer information based on the phone number once the call reached to the agent (using web form), but it is not working as it is not login and not fetching ... What is the solution to achieve this? It is really very good to fetch the customer information when the call reach or at least to login automatically to the vtiger crm when the agent login for vicidial.

Appreciate the kindly help.
Regards
Bilal

Re: Webforms

PostPosted: Tue Jun 14, 2016 4:28 pm
by williamconley
1) There is a very old integration with prior versions of vTiger which theoretically may have allowed this. This may be part of the vTiger user sync function.
2) Ordinarily the agent would be prompted for login the first time they "bounced" to the CRM. You could prevent this by having them log in to the CRM before Vicidial.

Re: Webforms

PostPosted: Tue Jun 14, 2016 5:57 pm
by bghayad
1) There is a very old integration with prior versions of vTiger which theoretically may have allowed this. This may be part of the vTiger user sync function.

* Why this integration had been broken and did not continue?

Thanks a lot William.
Regards
Bilal

Re: Webforms

PostPosted: Tue Jun 14, 2016 6:16 pm
by mflorell
If you search the forums you will find the many reasons why the vtiger integration did not continue.

In short:
- all 3 sponsors of the integration dropped it
- poor SQL design results in very slow performance
- vtiger becomes unstable under high record counts
- insecurity of the vtiger code.

Re: Webforms

PostPosted: Tue Jun 14, 2016 7:32 pm
by williamconley
Unless YOU want to be the new sponsor ... or at least pay someone to upgrade the old code to work with the new vTiger ... (and submit the revisions to the Core if you don't have The Vicidial Group perform the upgrade!)

Re: Webforms

PostPosted: Tue Jun 14, 2016 8:13 pm
by mflorell
At this point, we wouldn't accept a project to re-integrate current vtiger into Vicidial at the level that we had done before. It would actually be a cheaper project(and take less time) to just turn Vicidial into a full CRM.

Re: Webforms

PostPosted: Thu Jun 16, 2016 5:46 am
by bghayad
OK Thanks a lot for declaration.
Why it is not possible to fetch the user information from vtigerCRM users module using webform URL and by passing the caller number of the customer?
What is the difference between using webform to fetch the information from the users module in the vtigercrm and the integration?

Regards
Bilal

Re: Webforms

PostPosted: Thu Jun 16, 2016 6:27 am
by mflorell
Of course that one function would be possible if someone wanted to add that. What I am saying is that the full vtiger integration with all of the features that we had achieved on vtiger version 5(which involves A LOT more functions than that) is not something we would do at this point.

Back when we did the full integration, vtiger had no API. All of the integration features were done either through direct database access or by modifying vtiger and vicidial code. The integration included full user, group, lead and account synchronization between the two systems. There were also other features like click-to-dial and automatic insertion of Notes into vtiger records when calls were made, as well as several other features.

Now that vtiger has an API, some of those features would be much easier to integrate, but the API is nowhere near robust enough to allow for the same level of integration we once had without resorting to the unsustainable methods of modifying the vtiger code or using direct database access on a changing vtiger database schema.

Re: Webforms

PostPosted: Thu Jun 16, 2016 6:34 am
by bghayad
Thanks a lot for you.
I have vicidial and vtiger on the same machine. Now I am able if I typed the following link at the URL to open the VtigerCRM:
http://192.168.1.X/vtigercrm604/index.p ... ord=xxxxxx
But when I place this link in the CRM PoP Address, it is giving me the following error when it is trying to open the vtigerCRM:
{"success":false,"error":{"code":"Illegal request","message":"Illegal request"}}
What I have to do a setting to resolve this and being able to open the link when the agent login?
Regards
Bilal

Re: Webforms

PostPosted: Thu Jun 16, 2016 7:03 am
by mflorell
I have no idea, have you tried asking on a VtigerCRM forum?

Re: Webforms

PostPosted: Thu Jun 16, 2016 11:40 am
by bghayad
Hello;
I resolved it. It is related to the vtigercrm.
In the file: /vtigercrm/includes/http/Request.php, I have to comment the line: throw new exception('illegal request');

But from the other side: I need a help (from those who used web url to fetch information from vtigercrm) to know what is the URL to fetch the customer information from module users by passing the telephone number. Appreciate if someone can help me.

Regards
Bilal