$forms->formName() method

Convert given value to form name if is isn’t already

Usage

// basic usage
$int = $forms->formName($formName);

// usage with all arguments
$int = $forms->formName($formName, bool $throw = true);

Arguments

NameType(s)Description
formNameint, string, FormBuilderForm
throw (optional)bool

Throw exception if cannot resolve to form name or does not exist? (default=true)

Return value

int


$forms methods and properties

API reference based on ProcessWire core version 3.0.236

Latest news

  • ProcessWire Weekly #533
    In the 533rd issue of ProcessWire Weekly we'll check out some newly released third party modules and highlight a new site of the week. Read on!
    Weekly.pw / 27 July 2024
  • Page List Custom Children module
    This simple module gives you the ability to customize the parent/child relationship as it appears in the admin page list, enabling child pages to appear under more than one parent.
    Blog / 28 June 2024
  • Subscribe to weekly ProcessWire news

“…building with ProcessWire was a breeze, I really love all the flexibility the system provides. I can’t imagine using any other CMS in the future.” —Thomas Aull