Lookup record
Check if a record exists
Use a lookup query when a form needs to check whether a record exists before the user continues.
Build the query
- Open the relevant datasource
- Create a query that looks up the row you need
- Add a binding for the lookup value
- Save and test the query
Build the form
- Add a Form
- Add the input field you want to check
- Add a button to run the lookup query
Add the actions
- Run the lookup query
- Save the returned row ID to app state
- Stop the action chain when the query returns no rows
- Show a warning notification when the record is not found
Show the result
- Add a Repeater or Form block
- Filter the data by the saved row ID
- Hide the component when no record was found
Try it out
Updated 4 months ago
Did this page help you?