Forums

CF v4 withVTiger 5.4

Zeroastro 28 Jun, 2012
Hi,
First of all I'm sorry for my bad english, I hope to be understandable.
I already looked for a solution before opening this topic, but nothing worked.

Ok, I need to create new VTiger Leads using CF.

Following many howtos (for CFv3 with VTiger 5.1) I activated Webforms module and changed my Webforms.config.php in this way:


$enableAppKeyValidation = false;
$defaultUserName = 'jomtest'; // this is a CEO user I created
$defaultUserAccessKey = 'J4F5QTftw8gIm0jM'; // this is jomtest user key

$defaultOwner = 'jomtest';
$successURL = '';
$failureURL = '';


In CF I created a form only with firstname, lastname, email, cf_640 (cf_640 is a custom textarea in Leads) and submit.
OnLoad event is just "show html", OnSubmit events are Debugging (first position) and CURL (second position).
My CURL settings are:


Target URL: http://my.vtiger.domain/modules/Webforms/post.php

Header in response: No

Params:
firstname=firstname
lastname=lastname
email=email
cf_640=cf_640
moduleName=Leads 
leadsource=Web Site
submit=submit


Everytime I try my form, this is my debugger output:


Data Array: 
Array
(
    [chronoform] => vt_test_form
    [event] => submit
    [Itemid] => 123
    [option] => com_chronoforms
    [view] => form
    [firstname] => MyName
    [lastname] => MyLastName
    [email] => myemail@mydomain.it
    [cf_640] => just another test
    [moduleName] => Leads
    [leadsource] => Web Site
    [submit] => submit
    [1751de08af68921c5ea73f093f15dd28] => 1
)
Validation Errors: 
Array
(
)
Debug Data
curl
CURL OK : the CURL function was found on this server.
$curl_values: firstname=MyName&lastname=MyLastName&email=myemail@mydomain.it&cf_640=just another test&moduleName=Leads&leadsource=Web Site&submit=submit
curl_target_url: http://my.vtiger.domain/modules/Webforms/post.php


It seems to work, but it doesn't.. Lead was not created!

What can I do?
Obviously, if you need more details, just ask for them! And if I wasn't clear, please tell me.. I'll try to explain better!
Again I'm sorry for my "almost english"🙂

Regards
GreyHead 01 Jul, 2012
Hi Zeroastro,

The main problem I see here is that there is nothing in the cURL data you are sending that identifies your account. I would expect that some of the 'login' data - username and accesskey - needs to be there too?

But I don't know anything much about vTiger.

Bob
This topic is locked and no more replies can be posted.