Multi_Field_Element_Type_Interface::validate_additional_fields( array $values, awsmug\Torro_Forms\DB_Objects\Elements\Element $element, awsmug\Torro_Forms\DB_Objects\Submissions\Submission $submission )

Validates additional fields for an element.

Description

Parameters

$values

(array) (Required) Associative arrays of $field => $value pairs.

$element

(awsmug\Torro_Forms\DB_Objects\Elements\Element) (Required) Element to validate fields for.

$submission

(awsmug\Torro_Forms\DB_Objects\Submissions\Submission) (Required) Submission the values belong to.

Return

(array) Associative array of <code>$field => $validated_value</code> pairs. Each validated value must be either the validated value, or an error object on failure. It may also be an array, in which case the individual values will be stored in the database separately. That array may also contain error objects for cases where errors occurred.

Source

File: src/db-objects/elements/element-types/multi-field-element-type-interface.php

	public function validate_additional_fields( $values, $element, $submission );

Changelog

Changelog
Version Description
1.0.0 Introduced.