- Getting Started
- Field Types
- Email Notifications
-
Integrations
- MailerLite
- Create User Accounts with Convert Forms
- MailChimp
- HubSpot
- GetResponse
- AcyMailing
- Content App
- Webhooks Addon
- Facebook Meta Pixel
- Google Adwords
- Sync submissions with your favorite app
- Drip Ecommerce CRM
- Google Analytics
- Constant Contact
- SalesForce Web-to-Lead
- IContact
- Zoho CRM
- Elastic Email
- Zoho Campaigns
- Zapier
- ConvertKit
- Brevo (Sendinblue)
- Campaign Monitor
- AWeber
- ActiveCampaign
-
Functionality
- Scroll the Page to the Top When a Long Form is Submitted
- Display Submissions Count for a Specific Form
- Populate Drop Down, Radio Buttons or Checkboxes with a CSV File
- Automatically Delete Submissions Older Than X Days
- Silently POST Submitted Data to Any API or URL
- Automatically Save Each Submission to a JSON file
- Authenticate and Login a User with a Custom Joomla Form
- Auto-Populate a Form Field with an Article Data
- Add a placeholder text to a Dropdown
- Create Multilingual Forms in Joomla
- Create a custom Joomla User Registration Form
- Redirect User to a URL After Form Submission
- Export and Import Forms across different Websites
- Export Form Submissions to CSV
- Convert Forms
- Styling and Customization
- Payment Forms
- Advanced Features
- Developers
- Troubleshooting and Support
-
Spam, Security & Compliance
- Enforcing a Custom Password Policy in Convert Forms
- Add Cloudflare Turnstile to your Joomla Form
- Implement the Iubenda Consent Database in Joomla with Convert Forms
- Add Custom Validations to Fields and Forms
- Add Math Captcha to your Form
- Prevent a Field From Saving in the Database
- Add hCaptcha to your Form
- Enable Double Opt-in
- Allow Form Submissions in Specific Date Range
- Ensure a Unique Value is Entered Into a
- Block Form Submissions Containing Profanity (Bad Words)
- Block Email Addresses or Email Domains
- Native Convert Forms Anti-spam Protection with Honeypot
- Add reCAPTCHA to your Form
- Create GDPR Compliant Forms
Implement the Iubenda Consent Database in Joomla with Convert Forms
This tutorial’ll guide you through integrating the Iubenda Consent Database with your Joomla forms using Convert Forms and the Iubenda HTTP API method. This process will help you manage user consent more effectively and ensure compliance with privacy regulations.
Step 1: Obtain Your Iubenda API Key
To start, you’ll need a private API Key from your Iubenda application dashboard. This key is essential for authenticating your requests to the Iubenda Consent Database.
Step 2: Configure the PHP Script in Convert Forms
Navigate to your form settings in Convert Forms and locate the PHP Scripts section. In the After Form Submission option, paste the following PHP snippet. Be sure to review and update all variables before the “DO NOT EDIT BELOW” line:
$formData = new Joomla\Registry\Registry($submission->params);
// Your Iubenda API Key
$apiKey = 'ENTER_YOUR_API_KEY_HERE';
// The name of the form
$form_name = 'Contact Form';
// The name of the field representing the submitter's email address
$submitter_email = $formData->get('email');
// The name of the field representing the submitter's name
$submitter_name = $formData->get('name');
// Optionally set the name of the fields representing the Privacy Policy and Newsletter fields
$legal_notices = [
'privacy_policy' => $formData->get('privacy_policy_field'),
'newsletter' => $formData->get('newsletter_field')
];
// DO NOT EDIT BELOW
$options = new Joomla\Registry\Registry;
$options->set('headers.ApiKey', $apiKey);
$options->set('headers.Content-Type', 'application/json');
$http = Joomla\CMS\Http\HttpFactory::getHttp($options);
$data = [
'subject' => [
'email' => $submitter_email,
'full_name' => $submitter_name,
'verified' => true
],
'proofs' => [
[
'content' => json_encode($formData),
'form' => $form_name
]
]
];
foreach ($legal_notices as $key => $value)
{
$data['legal_notices'][] = [
'identifier' => $key
];
$data['preferences'][$key] = (bool) $value;
}
$response = $http->post('https://consent.iubenda.com/consent', json_encode($data));
$success = ($response->code >= 200 && $response->code <= 299) ? true : false;
$body = json_decode($response->body);
if (!$success)
{
throw new Exception(isset($body->message) ? $body->message : 'Iubenda Error');
}
By following these steps, you can effectively integrate the Iubenda Consent Database with your Joomla forms using Convert Forms. This setup helps in collecting and storing user consent data securely and compliantly.