Guide
Custom app for filtering relation dropdown in forms
Fibery forms don't support filtering a relation dropdown based on what a user selected earlier in the same form. If your workflow depends on that kind of context - for example, showing only the assignees who belong to a specific company, rather than everyone in your People database - native forms will always show the full unfiltered list. This matters when the relationship between records is hierarchical: the right options in step two depend entirely on what was chosen in step one. Custom apps solve this by letting you build a multi-step form where each step can filter its fields based on values captured in previous steps, so users only ever see options that are relevant to their specific context.
The setup
This guide uses a concrete example: a consulting team that tracks Companies and Check-ins. Each company has an Assignees field - a relation to a People database listing who's responsible for that account. Each check-in also has an Assignees field pointing to the same People database, recording who will actually conduct the check-in.
The problem arises when creating a new check-in via a form. The Assignees dropdown on the check-in pulls from the entire People database - but in practice, you only want to assign the check-in to someone who's already assigned to the relevant company. Without filtering, users see every person in the system and have to know themselves who's valid.
For this to work, your workspace needs:
A Companies database with an Assignees relation - People
A Check-ins database with a Company relation - Companies, and an Assignees relation - People
Steps
Open Custom Apps and create a new app. Name it something that reflects the workflow, like "New Check-in Form".
Then describe what you need to the AI using a prompt like this:
Create a form for creating check-ins with the following logic:
(1) The first step asks the user to choose a Company.
(2) The second step shows the check-in fields, including an Assignees dropdown filtered to only show people who are also assignees of the company chosen in step 1.
(3) The user cannot proceed to step 2 without first selecting a company.
What to include in your prompt, and why:
Name the exact databases and fields ("Companies", "Check-ins", "Assignees") - the AI builds against your actual schema, so the more detailed you are, the better it will work
Describe the steps in order - this tells the AI you want a multi-step form
State the filter condition explicitly - "filtered to only show people who are also assignees of the company chosen in step 1" is unambiguous.
Include the gate condition - "cannot proceed without selecting a company" tells the AI to make the company field required before unlocking step 2, which is what prevents the empty-list problem.