Joomla provides an excellent content management platform which is made even better with RsForms Pro. Bigcontacts is also a very useful tool for managing customers and sales leads. It is easy to connect a contact form on Joomla inside of RsForms Pro such that it creates a new contact inside of Bigcontacts. Here is how to do it.
Log into your Bigcontacts console and select Administration, Web Forms. Create a new web form and set the rules to create a task, opportunity, or both. Record the string value of the field name. This will be entered into the RsForm in Joomla.
Create your RsForm Pro contact form using that component in Joomla. Be sure to name your fields as required to match the values expected by Bigcontacts. The following shows some common fields with their associated name value in that column.
The common field names are (case sensitive): first, last, email, phone, and comments.
Add the following values as hidden fields somewhere on your form: form_code, lead_type, contact_type, and repost_form. The first three are commonly used values you wish to flag when the contact comes into Bigcontacts. Check you system to be sure you want these values and then add any additional ones you may desire. Next, set the value of the “form_code” value to the string value of the form you created in Bigcontacts. Set the other field values to correspond with how you want them flagged when they come into Bigcontacts. Finally, set the value of the repost field to “false.” This prevents a repost action by Bigcontacts back to the form which may cause an error on your server.
Post the following script code into the PHP Scripts section on the RsForm. Place this in the section “Script called after form has been processed.”
$url = 'https://crm.bigcontacts.com/webforms/process';
$ch = curl_init();
$useragent = 'YahooSeeker-Testing/v3.9 (compatible; Mozilla 4.0; MSIE 5.5; http://search.yahoo.com/)';
curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_URL, $url);
$data = array();
foreach ($_POST['form'] as $post => $value)
foreach ($value as $post2 => $value2)
$data = $post.'='.urlencode($value2);
$data = $post.'='.urlencode($value);
curl_setopt($ch, CURLOPT_POSTFIELDS, implode('&', $data));
$result = curl_exec($ch);
Test your form. Make sure that a new contact is created, and if you set the Bigcontacts webform to create a new task or opportunity that this is accomplished.
That’s all there is to it. Best wishes using Joomla, RsForms Pro, and Bigcontacts!