CustomField

CustomField

CustomField

Turn an array of dynamic field information into a custom field

Methods

Inherited from Element
Inherited from Input
Inherited from InputAttributesTrait
Inherited from Element
Inherited from BasicAttributesTrait

__construct

Creates a variable input type from a passed row of custom field settings (often from the database).

CustomField::__construct( \Gibbon\Forms\FormFactoryInterface $factory, string $name, array $fields )

setValue

Sets the value of the custom field depending on it’s internal type.

CustomField::setValue( mixed $value = '' )

getValidationOutput

Get the validation output from the internal Input object.

CustomField::getValidationOutput( ): string

Return Value: string