Forms
Use this API to create, update and delete website forms and their submissions.
If you are looking to develop your own form, please use the forms:form tag with recordsubmissions="true"
Methods
Invoke via \Components\Website\Pages\Forms::method()
Click a method name to copy it.
Deletes a record from the database
Parameters
$iFormId
int
A record's form_id
Return
Returns true if record existed and was deleted, otherwise false
Gets a record from the database
Parameters
$iFormId
int
A record's form_id
Return a set of records from the database
Gets a single field from a record
Parameters
$iFormId
int
A record's form_id
Returns the number of records in the database (matching the filter if specified)
Returns the last submission for a form for the current logged in user
Returns the submissions for a given form id
Saves a record into the database
Saves a specific column of a row into a database
Parameters
$iFormId
int
A record's form_id
Return
Array of
Forms that match the search query.