Page 1 of 1

CGBetterForms send data to CRM

Posted: Mon Jun 04, 2018 3:05 pm
by gnegne74
Hello, I'm trying to send form data to a CRM using "POST form results to a URL/WebHook".
I don't understand how can I get form variables through code into "Webhook URL".
Where can I find some docs about this option? Someone has done this task?
Thank you for support!

Re: CGBetterForms send data to CRM

Posted: Mon Jun 04, 2018 8:22 pm
by velden
Seems to me you should just enter the url there. The variables will be POSTed to this url.

Re: CGBetterForms send data to CRM

Posted: Tue Jun 05, 2018 8:29 am
by gnegne74
velden wrote:Seems to me you should just enter the url there. The variables will be POSTed to this url.
Ok, it's clear. But how these variables are get from the hook page?

Code: Select all

myVar = $response->get_field_value('field_name')
Is syntax correct?

Re: CGBetterForms send data to CRM

Posted: Tue Jun 05, 2018 12:33 pm
by velden
I don't know what you mean.
Note that I never used this feature but I'd expect the variables are posted to this url by their name.

field_name = field_value

Didn't test it though that should be simple with a php test-script to post to.