[attachment=0]2014-04-08_192924.jpg[/attachment]
I built a form works fine with the first line like
<form name="New Lead" action="https://oms2.od1.vtiger.com/modules/Webforms/capture.php" method="post" accept-charset="utf-8" enctype="multipart/form-data">
but that overrides the Captcha checking and subsequent mails I'd like to send. It ends with a blank page with {"success":true,"result":"ok"} written on top,
The sequence I want to realise is:
1 Fill in the form,
2 press submit,
3 check captcha
4 on success send form to VTiger
5 check that transmission is sucessfull
6 send confirmation emails
How can I do this?
Thanks Calculus00,
As a matter of fact I can save form data to VTiger, but it ends up with a success message from the server. By no means can I follow this up with an email, the display of a message or saving into a database.
I can't get Curl working neither.Always ends up with "Webform not found".
Hi effemeer,
How do you save the data to VTiger if the CURL doesn't work then ?
Please add a "debugger" action after the curl and check the displayed info.
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
I save the data with a Chronoforms form : <form id= "myform" action="https://oms2.od1.vtiger.com/modules/Webforms/capture.php" method="POST"> and using the Submit button.
The set I tried to submit with Curl was as follows (name = the name of the webform)
publicid=737a112ef5xxx927e32749f
name=name
firstname=First Name
lastname=Last Name
company=Company
email=Email
phone=Phone
designation=Title
fax=Fax
label:VAT_nr.=VAT nr.
label:CoC_/_KvK=CoC / KvK
lane=Street
code=Postal Code
city=City
country=Country
state=County
description=Description
I also tried the same set with curly brackets:
publicid=737a112ef5xxx927e32749f
name={name}
firstname={First Name}
lastname={Last Name}
company={Company}
I'll give it a new try followed by Debugger and keep you posted.
Your first example would work but that would not process any CF actions because you have changed the action url!
The CURL config you have is wrong because you should use it in this format:
post_field_name=form_field_name
So, in order to post the "publicid" to VTiger, you must do 1 of 2 things:
#1- either have a field with this value in your form and use:
publicid=field_name
#2- OR inject the field value before the CURL using a "Custom code" action (this method is more secure):
<?php
$form->data["publicid"] = "737a112ef5xxx927e32749f";
?>
then use:
publicid=publicid
The 2nd rule should be applied to all fields which don't exist in the form.
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Thank you for your assistance. Super!
Curl works fine now and I get my email messages.