Save a form entry
This is the same as $form->entries()->save($entry); except that the $form object can be determined automatically when saving existing entries.
Available since version 0.4.4.
Usage
// basic usage
$bool = $formBuilderMain->saveEntry(array $entry);
// usage with all arguments
$bool = $formBuilderMain->saveEntry(array $entry, $form = 0);
Arguments
Name | Type(s) | Description |
---|---|---|
entry | array | |
form (optional) | int, string, FormBuilderForm | Form or omit to determine automatically from entry |
Return value
bool
int
Returns saved entry ID on success, boolean false on fail
Exceptions
Method can throw exceptions on error:
FormBuilderException
or\Exception
FormBuilderMain methods and properties
API reference based on ProcessWire core version 3.0.236