On Your Site
Local Development
Site Code
Guides
Site Configuration
Content Management
Forms
Form API
Templates
Forms
Introduction
Forms allow you to collect payment and lead generation information from your supporters. The supplied forms are suitable for most scenarios; however, they are easily customisable by site creators when required.
They are a seperate concept to templates and campaigns to allow them to be reused on multiple pages.
To define a form you call the $siteConfig->addForm(array $formConfig)
method
in your site_config.php
file and pass your form configuration as an array.
The documentation for form options can be found here.