Validation Events

Aso Caldera in Japan.

Caldera Forms uses Parsely.js for front-end validation. While Parsely.js does have events for validation, it is recommended to use Caldera Forms’ validation events instead.

These events can be used to capture validation errors, or run code when validation fails or succeeds on a form or field.

Important Note:

  • These events were added in Caldera Forms
  • Changing field validation in the browser will not affect server-side validation

A good example of these events being used can be found in the LSX Zoho CRM add-on.

Change Caldera Forms Field Validation Result

Where Does This Code Go?

When using WordPress hooks to customize Caldera Forms or other plugins you should not modify the plugin files, or you will lose your changes when you update the plugin. Instead you should create a small plugin to hold the custom code. It's easy, learn how here.

Technically you can add the custom code to your theme's functions.php, but then you will not be able to change your theme and keep these customizations.

Learn More