There are additional triggers that some elements have, besides lifecycle triggers.

Button element

The Button element has one additional onClick trigger.

  • onClick – runs when an element is clicked.

User input elements

Input elements (input, input (string, text, integer, float, email, password, phone, geopoint), file picker, date picker, time picker, datetime picker) have the following triggers:

  • onChange – runs when a change occurs in the field;
  • onFocus – runs when a field is selected (clicked on);
  • onBlur – runs when the field is deselected;
  • onEnterKey – runs when the Enter button is pressed.

Listed triggers on the example of the input element:

Table element

It has four additional triggers:

  • onDataUpdate – runs by the Table Update Data block.
  • onRowClick – runs by clicking on a row. This trigger has a Record ID field. By using it, you can transfer data about the record in this row.
  • onRowDoubleClick – runs by double-clicking on a row. Works similar to onRowClick. It's handy to use if you have two scripts to click a row.
  • onFilter – runs when the table is paginated.

Filepicker element

It has two additional triggers:

  • onSelectFiles – runs when the user inserts a file into the form. The most common use is to store the uploaded file in the database.
  • onRemoveFile – runs when the user removes a file from the form.

It has one additional trigger:

  • Option onClick – runs when an element from the dropdown list is clicked.

The Tabs element

It has one additional trigger:

  • onTabsSelect – runs when switching tabs. This trigger does not affect tab switching.

Was this article helpful?

AppMaster.io 101 Crash Course

10 modules
2 weeks

Not sure where to start? Get going with our crash course for beginners and explore AppMaster from A to Z.

Start Course
Development it’s so easy with AppMaster!

Need More Help?

Solve any issue with the help of our experts. Save time and focus on building your applications.

headphones

Contact Support

Tell us about your problem, and we’ll find you a solution.

message

Community Chat

Discuss questions with other users in our chat.

Join Community