Forums

redirect to from collected form data

finc 30 Apr, 2010
In the Form the User enters following data:

Firstname: John
Lastname: Smith
Company: HisCompany
Email: [email]john.smith@hiscompany.com[/email]
Mobilephone: 0123456789

Collecting all this information I have to form a link which I have to call

https://whatever-crm-system.com/post?externalrequest=1&firstname=John&lastname=Smith&company=HisCompany&email=john.smith@hiscompany.com&mobilephone=0123456789


How I Do that?
GreyHead 08 May, 2010
Hi finc,

You can either build the URL using PHP in the OnSubmit After box to set the ChronoForms ReDirect URL (you'll fidn that code here somewhere). Or better, use the cURL Plugin to send the data to the CRM.

Bob
finc 12 May, 2010
Thanks GreyHead,

so far I have done it
Do I have to use the & at the end or does it go without it
Target url:
a) https://whatever-crm-system.com/post?externalrequest=1&
b) https://whatever-crm-system.com/post?externalrequest=1

I have it without &
and did not get any CURL response in the debug mode

Maybe the receiving site is off the Job?

cf_CURL debug info
$curl_values: firstname=finc&lastname=finco&company=goodjob&email=finc.finco%40goodjob.com&mobilephone=0123456789
$params->target_url: https://whatever-crm-system.com/post?externalrequest=1
$ch: Resource id #109
CURL response:
GreyHead 13 May, 2010
Hi finc,

The target url is the part up to the ? (excluding the ?). That is https://whatever-crm-system.com/post

The remainder is part of the query string and needs to go in the 'Extra inputs data' box as externalrequest=1

Bob
finc 13 May, 2010
Thanks GreyHead,

I put "externalrequest=1" in the Extra Code TAB into the "Extra after CURL code" Box

Got this:

externalrequest=1
cf_CURL debug info
$curl_values: firstname=finc&lastname=finco&company=goodjob&email=finc.finco%40goodjob.com&mobilephone=0123456789mobilephone=0123456789
$params->target_url: https://whatever-crm-system.com/post
$ch: Resource id #109
CURL response:

Does it look okay?
Do I have to get something on "CURL response:"?
GreyHead 13 May, 2010
Hi finc,

'That is' doesn't go in the Target URL box - just the URL.

external=1 goes in the 'Extra fields Data' box (sorry, the name has changed in the version I looked at).

Bob
finc 13 May, 2010
Yeah GreyHead I must be funny,
no it doesn't go there of course😀

just put it in images now:

General TAB


CURL params TAB


Extra code TAB


Debug Result:

cf_CURL debug info
$curl_values: firstname=finc&lastname=finco&company=goodjob&email=finc.finco%40goodjob.com&mobilephone=0123456789&externalrequest=1
$params->target_url: https://whatever-crm-system.com/post
$ch: Resource id #109
CURL response:

externalrequest=1 is on a wrong position up there!

It should be this way:

https://whatever-crm-system.com/post?externalrequest=1&firstname=finc&lastname=finco&company=goodjob&email=finc.finco@goodjob.com&mobilephone=0123456789
GreyHead 13 May, 2010
Hi finc,

That loosk good. The order of the parameters in the query string shouldn't make any difference.

Next thing to check is that the CURL plugin is enabled on the form Plugins tab (a green bar is 'enabled')?

Bob
finc 13 May, 2010
Thanks GreyHead,

here is the Plugin TAB:
I think after this I will turn over to the CRM Support😉

GreyHead 13 May, 2010
Hi finc,

Perfect.

Try setting 'Header in Response' to Yes and see if that shows anything useful.

I can't think of anything else. Check with the CRM folk. You may need some slightly different cURLOPT setting. I do have a development version of the plugin that is a bit more flexible if you need that.

Bob
finc 13 May, 2010
Thanks GreyHead,

I will come back to You on the beta plugin if needed after checked with the CRM buddies.

Here is what I got else with 'Header in Response' YES:

CURL response: HTTP/1.1 200 OK Date: Thu, 13 May 2010 17:16:56 GMT Server: Apache-Coyote/1.1 Cache-Control: no-cache Pragma: no-cache Expires: Thu, 01 Jan 1970 00:00:00 GMT Content-Type: text/html;charset=UTF-8 Content-Length: 2715 Set-Cookie: JSESSIONID=D7811099D43F177C4E017D4233AB2621; Path=/AESWebApp
GreyHead 13 May, 2010
Hi finc,

Well that tells us that it's connecting to the CRM server OK. Just need to know why there is no response. Could be missing or mistyped parameter?

Looking at the query string there isn't anything there to identify your account with the CRM?

Bob
finc 14 May, 2010
Hi GreyHead,

I have talked with the CRM support and they say that the data has been received.
Only thing is that my curl is waiting a receipt about this transfer and that they
are not going to send it.

So for a closer look I will send you a PM with
the real link to this case.

Regards
GreyHead 14 May, 2010
Hi finc,

If you set debug to No then cURL shouldn't need to wait for a response.

Bob
finc 14 May, 2010
Thank You GreyHead for @ll Your Help !!!!

I checked the debug to off and now there is no "response needed" popup.

-:The Case is Closed:-

Best Regards
finc
This topic is locked and no more replies can be posted.