Getting Started
Datasources
Spaces
Functions
Components
Super Records
Tasks
Permissions
Settings
Advanced

Button Component

Button components let users perform actions through functions like inserting or updating a record. In a Space, buttons are typically used to perform a quick action that does not require significant user input or confirmation (like flipping a flag). 

Button Configuration

Actions

Type: Select the data source that you want this button to work with, and then choose the type of action, aka function, that you want to perform. 

  • For most databases, you’ll see auto-generated insert, update, and delete functions (only if the database credentials used to connect have these permissions)
  • For business apps, you’ll see auto-generated functions based on available APIs
  • If you created a custom function for a database, you’ll see those functions here
  • If you created a custom function for HTTP services (API/GraphQL), you’ll see those functions here as well 


Button Text: This will be displayed on the button. 


After Submitting: You can choose to refresh a table component here when you click this button (allowing you to view updated values). “Add another action” allows you to refresh multiple components upon submission. 


Fields

This section allows you to configure the fields submitted with your button and choose how those fields are populated. You can drag and drop a field to rearrange the ordering or remove a field from this form by clicking on the trash icon.


For auto-generated functions, the fields shown will be the fields (columns) in the resource your function acts on. For custom functions, the fields shown will be the dynamic parameters you defined when creating the function.


Fields and Values

These fields are used to determine the values that are submitted with this button. For buttons, you must configure each field you plan to use, as there is no way for the user to provide any values manually. Click “+ Add Data” to add more fields (only the primary field key is added by default). 


Clicking on “Edit” will allow you to configure a field - click here to learn about field configuration.