All features

Cherry Blossom feature

Gravity Forms: Regional Validators

Provides opt-in Dutch and Belgian field validation.

Provides opt-in Dutch and Belgian field validation.

Capabilities and extension points

Stores the custom field property name.

  • var string

Initializes regional validation integration.

Registers regional validation hooks.

Gets available regional validation types.

  • return array Validation definitions keyed by identifier.

Outputs the regional validation field setting.

  • param int $position Settings position.
  • param int $form_id Form ID.

Outputs editor behavior for the regional validation setting.

Validates a field using its selected regional validator.

  • param array $result Current validation result.
  • param mixed $value Submitted value.
  • param array $form Form object.
  • param \GF_Field $field Field object.
  • param string $context Submission context.
  • return array Filtered validation result.

Validates a value using a named regional validator.

  • param string $validation Validation identifier.
  • param mixed $value Value to validate.
  • return bool Whether the value is valid.

Validates a Dutch postcode.

  • param mixed $value Value to validate.
  • return bool Whether the value is valid.

Validates a Belgian postcode.

  • param mixed $value Value to validate.
  • return bool Whether the value is valid.

Validates a Dutch mobile phone number.

Gravity Forms 3.0.2 formatted-phone payloads and plain phone values are both supported.

  • param mixed $value Value to validate.
  • return bool Whether the value is a Dutch mobile phone number.

Validates a Belgian mobile phone number.

Gravity Forms 3.0.2 formatted-phone payloads and plain phone values are both supported.

  • param mixed $value Value to validate.
  • return bool Whether the value is a Belgian mobile phone number.

Validates an IBAN using its MOD-97 checksum.

  • param mixed $value Value to validate.
  • return bool Whether the value is valid.

Validates a Dutch Chamber of Commerce number.

  • param mixed $value Value to validate.
  • return bool Whether the value is valid.

Validates the format of a Dutch VAT ID.

  • param mixed $value Value to validate.
  • return bool Whether the value is valid.

Validates a Dutch RSIN using the eleven test.

  • param mixed $value Value to validate.
  • return bool Whether the value is valid.

Validates a Belgian enterprise number.

  • param mixed $value Value to validate.
  • return bool Whether the value is valid.

Validates a Belgian VAT ID.

  • param mixed $value Value to validate.
  • return bool Whether the value is valid.

Normalizes a Dutch or Belgian phone number to E.164 notation.

  • param mixed $value Phone number.
  • param string $country ISO country code.
  • return string|null Normalized number, or null when unsupported.

Gets a value from a Gravity Forms 3.0.2 formatted-phone payload.

Plain scalar phone values are returned unchanged for the e164 part.

  • param mixed $value Phone field value.
  • param string $part Payload part to retrieve.
  • return string|null Phone value, or null when unavailable.

Removes non-numeric characters from a value.

  • param mixed $value Raw value.
  • return string Numeric characters.

Source reference

This editable reference page is based on the PHP documentation in plugins/gravity-forms/class-regional-validators.php.