$formssaveEntry()

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 = $forms->saveEntry(array $entry);

// usage with all arguments
$bool = $forms->saveEntry(array $entry, $form = 0);

Arguments

NameType(s)Description
$entryarray
$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


$forms methods and properties

API reference based on ProcessWire core version 3.0.257

Latest news

  • ProcessWire Weekly #620
    The 620th issue of ProcessWire Weekly brings in all the latest news from the ProcessWire community. Modules, sites, and more. Read on!
    Weekly.pw / 28 March 2026
  • Handling photo heavy sites in development
    ProcessWire and photo-heavy sites go hand-in-hand. But these sites can also present development challenges, especially when cloning a large site. This post goes into detail about techniques you can use to keep lightweight development sites without all the photo/image overhead.
    Blog / 18 February 2026
  • Subscribe to weekly ProcessWire news

“We chose ProcessWire because of its excellent architecture, modular extensibility and the internal API. The CMS offers the necessary flexibility and performance for such a complex website like superbude.de. ProcessWire offers options that are only available for larger systems, such as Drupal, and allows a much slimmer development process.” —xport communication GmbH