-
- Managing Form Submissions
- Searching and Filtering Submissions
- Submission Tracking Data
- Customizing Submission Columns
- Editing Submissions
- Deleting Submissions
- Importing Submissions
- Exporting Submissions
- Exporting Submissions with a Webhook URL
- Tracking the User's IP Address
- Disable Submission Storage
- Increment a Count on Each Submission
- Auto-Delete Old Submissions
- Auto-Save Each Submission to a JSON file
-
- Set up Auto-Responder Emails
- Email the Person Who Filled Out the Form
- Send an Email Only When a Checkbox Is Checked
- Attach the Submission PDF to Emails
- Send Email Based on Drop Down Selection
- Send Different Email Content Based on Form Responses
- Styling Emails with CSS
- Sending Plain-Text Alternative Body Emails
- Troubleshooting Email Delivery
- Tracking Sent Emails
- Resending Emails
-
- Browser Autocomplete for Form Fields
- Redirect to a Menu Item After Form Submission
- Show a Form Only to Logged-In Users
- Adding an “Other” Option
- Adding a Unique ID to Each Form Submission
- Show or Hide Form Fields Based on User Joomla User Group
- 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
- Silently POST Submitted Data to Any API or URL
- Create a Custom Login Form
- Auto-Populate Fields with Article Data
- Add a placeholder text to a Dropdown field
- Create Multilingual Forms in Joomla
- Redirect User to a URL After Form Submission
- Importing and Exporting Forms
- Display Convert Forms in a popup
-
- Minimum Time to Submit
- Restrict Form Submissions Based on IP
- 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 Field
- Block Form Submissions Containing Profanity (Bad Words)
- Block Email Addresses or Email Domains
- Honeypot
- Setting Up Google reCAPTCHA
- Create GDPR Compliant Forms
Auto-Save Each Submission to a JSON file
Heads up! This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
Would you like to automatically save each submission into a JSON file that you can later use and monitor your submissions? This is rather useful if you want to import the data into 3rd-party software to edit or even print them. The following PHP snippet will allow you to export each submission into a file.
Setup
To save the submissions into a file, copy the code shown below and place it into the PHP Scripts → After Form Submission area of your form.
// Enter the file name where your submissions will be saved.
$file_name = 'submissions.txt';
// Do not edit below
$file = JPATH_SITE . '/' . $file_name;
$data = is_file(\Joomla\Filesystem\Path::clean($file)) ? json_decode(file_get_contents($file), true) : [];
if (!is_array($data))
{
return;
}
// Set the data that will be saved
$save_data = [
'ID' => $submission→id,
'Date' => $submission→created,
'Name' => $submission→params['name'],
'Email' => $submission→params['email']
];
array_push($data, $save_data);
$data = json_encode($data, JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
// Save the file
\Joomla\Filesystem\File::write($file, $data);
Note: the submitted data by default are ID, Date, Name and Email. You can save further information by manipulating the $save_data variable above.
Last updated on Jun 22nd 2026 15:06