Skip to content
MyAppBuilder
StableEvent

On focus

Overview

Fires when an input receives focus (the user clicks or tabs into it).

Purpose

Show help, expand a section or clear a previous error when the user starts editing a field.

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

  • Keep actions instant (Set state, Show message). Avoid navigation here — it interrupts typing.

Outputs

  • No event data; the input's current value is Component › value or Form › <name>.

Example

Show a hint

Example
Phone input › On focus:
  1. Set state  Page state › showPhoneHint = true

Errors

  • None.

Limitations

  • Not fired by non-input components.

Related

Was this helpful?