Previous Page
addInvalid()

Solar_Form
addInvalids()

Next Page
apiVersion()

addInvalids()

public void addInvalids ( array $list, string $array default NULL )

Adds invalidation messages to multiple elements, sets their status to false (invalid) and sets the form status to false (invalid).

Parameters

  • (array) $list: An array where the key is the element name, and the value is a string or array of invalidation messages for that element.
  • (string) $array: Rename each element as a key in this array.

Returns

  • (void)

Description

Adds invalidation messages to multiple elements, sets their status to false (invalid) and sets the form status to false (invalid).