FormBuilder & Submissions Module

Dynamic Form Builder Block

The FormBuilder Module fully replaces static contact page scripts with a robust dynamic page-builder block. Designers construct customized web forms on-the-fly inside the admin area, and submissions are archived cleanly as JSON records in the database.

System Capabilities

  • Dynamic Fields List: Append and sort custom input types (text, textarea, email, tel, number, select, radio, checkbox) within the Page Builder.
  • Decoupled Submissions: Standardizes input data mapping and saves them as serialized JSON blocks inside the form_submissions table.
  • Custom Reader Panel: Admin panel renders a custom, styled read-only submission dashboard detailing the source page and form header.

Dynamic Blocks & Submissions Layouts

Below are visual structures mapping the form fields list layout:

Backend Submission Detail View

https://d6laptop.zero/admin/formbuilder/submissions/view?id=019ec7cd
FORM BLOCK: Career Application Form
Source Page: Join Our Team      Sender: Sarah Connor (sarah@resistance.net)
Your Full Name

Sarah Connor

Detailed Message

Defensive Cybersecurity Systems Engineer role application...

Submissions Model (Submission.php)

Submissions Model (Submission.php) php
namespace Zero\Modules\FormBuilder\Models;

class Submission implements Model
{
    use IsModel;
    protected static string $tableName = 'form_submissions';
    protected static array $fillable = ['name', 'email', 'phone', 'message'];

    public $formatted_fields = [];
}