⬆️

On Row Select

The On Row Select event fires when a row is selected in a Summary List screen (table, cards, etc).

This is a client-side JavaScript event and jQuery is loaded by default.

Available Variables

All variables from 3️⃣On Render are exposed, as well as:

  • error_message - set this to a string message to prevent action
  • show_in_modal - false - set this to true to open next screen in a modal popup
  • clicked_id - id of the item for the row that was selected
  • row_values - Array of visible values from the selected row, eg: {title:"foo", etc}

Examples

Maybe you don’t want to allow users to select rows where the status is Completed:

if ( row_values.status == "Completed" ) {
	return "Not Allowed";
}

Or maybe you want the subsequent detail record to be shown in a modal pop-up instead of a full screen:

show_in_modal = true;