$submission_data Array

Introduction #

The Submission Array contains all properties of a particular entry (i.e. date created, client IP, submitted field values, etc…). The response is formatted as key value pairs and converted as JSON.

Usage #

$submission_data['form_id'];  // returns the form id
$submission_data['created_at']; // returns the response created date

PHP Structure and Properties #

$response = [
    'form_id'       => 5, // Form ID
    'serial_number' => 1, // Numeric Serial Number
    'response'      => json_encode($response), // The submitted response as JSON
    'source_url'    => $source_url, // source url eg: https://domain.com/contact-form
    'user_id'       => 1, // current user id
    'browser'       => 'Chrome',
    'device'        => 'ipad',
    'ip'            => '127.0.0.1',
    'created_at'    => '2019-12-31 23:12:34',
    'updated_at'    => '2019-12-31 23:12:34'
];

Powered by BetterDocs