Skip to main content
Version: v1.0.0

Submission Form

Uses standard metadata block but is an email submission form that is used in in the included contact form as example but can be used for other forms as you require. Name and email address are hard coded but any other field are configurable with additional messages configurable.

<?php $this->createForm('Contact Form', [
//"id" => ["form_type", "pretty_name", "form_element_parameters", "tags", ...]
// tags is any of the following: required
// you can add any additional tags by adding to the array
"subject" => ["input", "Subject", 'type="text" placeholder=""', "required"],
"message" => ["textarea", "Message", 'placeholder=""', "required"]
], [
"mailMessage" => "Contact request details",
"successMessage" => "Your request has submitted successfully.",
]); ?>

<?= $this->showForm() ?>