Skip to content
MyAppBuilder
StableEvent

On click

Overview

Fires when the user clicks or taps the component.

Purpose

The most common event: buttons, links, icons, images, cards and containers all use it to navigate, save, open modals or change state.

Inputs

  • Supported by: Button, Icon Button, Link, Text, Icon, Image, Container, Card, KPI, Cards, Calendar and Scheduler (empty day cells), charts.

Configuration

  • Add the event in the component's Actions tab and list the actions in order. A Button inside a Form with Submits the surrounding form enabled triggers the form's On submit instead.

Outputs

  • Usually no event data. Exceptions: Cards pass Event › record and Event › id; Calendar / Scheduler pass Event › date (the clicked day, YYYY-MM-DD); charts pass Event › category, Event › value and Event › series.
  • Inside a list, table or detail view, Current record is the record the clicked component belongs to.

Example

Open the customer from a card

Example
Card › On click:
  1. Go to page  Customer detail
     Page parameters: id = Current record › id

Errors

  • An error in any action stops the list and shows a message.

Limitations

  • Containers and cards with an On click event become clickable as a whole; nested buttons still handle their own clicks.

Related

Was this helpful?