Skip to content
MyAppBuilder
StableEvent

On blur

Overview

Fires when an input loses focus (the user leaves the field).

Purpose

Validate or look something up once the user has finished typing — for example check a postcode with an API or hide a hint.

Inputs

  • Supported by: every form input (Text Input, Text Area, Number, Currency, Email, Phone, Password, URL, Search, Date, Time, Date & Time, Date Range, Dropdown, Multi Select, Radio, Checkbox, Toggle, Slider, Rating Input, Address, Location, Signature, Color Picker, File Upload, Image Upload, Camera, Barcode Scanner, QR Scanner, Autocomplete, Hidden Field).

Configuration

  • Good place for a Call API action followed by Set state, since it fires once per edit rather than per keystroke.

Outputs

  • No event data; read the final value from Form › <name> or Component › value.

Example

Postcode lookup

Example
Postcode input › On blur:
  1. Call API  GET Address lookup  (postcode = Form › postcode) → save as address
  2. Set state  Page state › city = Action results › address   ({{results.address.city}})

Errors

  • None specific.

Limitations

  • Also fires when the form is submitted by clicking a button (the input loses focus first).

Related

Was this helpful?