Save the form entry to a Page
- If saving an existing page, the ID of that page will be in
$data['_savePage']
- If
$status
omitted or null, it is determined automatically from form settings (most common call). - If
$onlyFields
is an array, only the field names specified will be saved.
Usage
// basic usage
$page = $formBuilderProcessorSavePage->savePage(array $data);
// usage with all arguments
$page = $formBuilderProcessorSavePage->savePage(array $data, int $status = null, $onlyFields = null);
Arguments
Name | Type(s) | Description |
---|---|---|
data | array | Form data to send to page |
status (optional) | int | Status of created pages |
onlyFields (optional) | array, null | Save field names present in this array. If omitted, save all field names. Names are form field names. |
Return value
FormBuilderProcessorSavePage methods and properties
API reference based on ProcessWire core version 3.0.236