Hello,
I would like to use chronoforms for my newsletter subscribers at campaign monitor. Campaign Monitor offers a form to include on a website, so I copied this code to custom element, deleted the form-tags as suggested in another post on the forum and entered the form-action-URL in a curl-action that was added to onSubmit.
But I only ge a blank page after clicking submit. any ideas what could be wrong?
thank you and best regards
Hi webfeuerflo,
Have you set up the cURL action with all the parameters you need to send to Campaign Monitor?
Please drag a Debugger action into the On Submit event, then submit the form and post the debug results here.
Note: if you are using the Easy Wizard you can turn on Debug on the Others tab.
More to the point are you sure that CM will accept subscriptions sent that way? Each service seems to have different requirements. I did set up a form a few years ago to work with CM but I don't remember the details any more (and it was with CFv3). Looking at their API I see that they have some libraries on GitHub that can be used but that may be more than you need.
Bob
I seem to be struggling with the parameters, don't know what to fill in there. Found a tutorial but it looks like if it was for version3, the curl action doesn't have these fields to enter the name and email-fields...
the debugger-action doesn't show anything, the page is still blank.
ok, had to set the error reporting in joomla configuration to developer.
this is what shows on the blank page:
Notice: Undefined variable: curl_values in xxx/administrator/components/com_chronoforms/form_actions/curl/curl.php on line 34
Catchable fatal error: Argument 1 passed to JUri::buildQuery() must be of the type array, null given, called in xxx/administrator/components/com_chronoforms/form_actions/curl/curl.php on line 34 and defined in xxx/libraries/joomla/uri/uri.php on line 544
Hi webfeuerflo,
I think that the error is because the cURL parameters box is empty. if you add a single line like email=email then it should go away.
What parameters do you need to send and is cURL the best solution for CM?
Bob
ok, I entered email=field name of the form. Now I get the debugger messages, it shows the array and:
CURL OK : the CURL function was found on this server.
$curl_values: email=my entered email-address
curl_target_url: the url from the form generated by campaign monitor.
But: in campaign monitor nothing is registered.
I would also need: First name, last name (required) and ZIP (optional), I have no idea how to do it. Do you have something like paid support, who could help me achieve it?
Got it working!!! Just entered fieldname=fieldname for all my fields and the data is processed in campaign monitor!
Thank you!