Solved on the forum

How do you open a patient’s related medications from a button in Adalo?

Pass the current patient into a medication-list screen, then filter the list through Adalo relationships instead of adding manual foreign-key text fields.

Documented from current sourcesBeginnerReviewed Aug 14, 2026
THE SHORT ANSWER

Pass the Current Patient into the medication-list screen, then filter that screen’s list where Medication > Patient equals Current Patient. Model the Patient-to-Medication relationship in Adalo instead of adding manual foreign-key text fields, and keep the selected patient in screen context through the detail flow.

Let relationships carry identity through the flow: caregiver to patient, then patient to medications. Each screen should receive the selected record explicitly before its list applies a relationship filter.

Completeness83%
Index decisionIndex now
Evidence basisAccepted forum solution corroborated by current Adalo relationship, link-action, and list documentation; no hands-on reproduction
WHAT YOU’LL HAVE

The intended outcome

A caregiver can select a patient, tap a button, and see only that patient’s related medications before opening medication details.

BEFORE YOU START

Requirements

  • Caregivers, Patients, and Medications collections
  • A Patient-to-Medication relationship
  • A Patient detail screen that has Current Patient available
BUILD IT

Step by step

  1. 01

    Model the relationships

    Relate each Medication to one Patient, and relate Caregivers to the Patients they may access. Do not add duplicate text fields to imitate foreign keys.

  2. 02

    Open the current patient

    From the caregiver’s patient list, link the selected list item to the Patient detail screen so Current Patient becomes available.

  3. 03

    Pass patient context from the button

    Add a button on the Patient detail screen and link it to the medications screen while passing Current Patient.

  4. 04

    Filter the medication list

    Set the medications list to Medications and filter where Medication > Patient equals Current Patient.

  5. 05

    Open medication details

    Link each medication list item to its detail screen while passing Current Medication.

WHY IT WORKS

The underlying logic

Adalo screen context carries the selected record between screens, while relationships express which medications belong to that patient.

Manual foreign-key text fields duplicate relationship state and make filters harder to maintain.

COLLECTIONS AND RELATIONSHIPS

Data model

CollectionImportant propertiesRelationships
PatientsPatient detailsMany Medications; connected to permitted Caregivers
MedicationsMedication detailsBelongs to one Patient
CaregiversUser profile fieldsRelated to permitted Patients
EVIDENCE CONTEXT

What still needs checking?

  • This is a forum-native answer with no original Adalocado video. It is automatically organized from the accepted reply and remains open to correction reports.
IF IT DOESN’T WORK

Common failure modes

Current Patient is unavailable

Check that the previous list item or button links to the screen with the selected Patient record rather than navigating without data.

Every medication appears

Add the Patient relationship filter to the medications list and compare it to Current Patient, not Logged-in User.

BEFORE YOU MOVE ON

Testing checklist

0 of 7 checked on this device

BOUNDARIES

Current limitations

  • Current Adalo documentation corroborates record relationships, link actions, and list filtering, but the source thread does not provide a complete current-builder reproduction of this patient workflow.
  • Authorization must still restrict which patients a caregiver can access; a list filter alone is not a security boundary.

Current evidence screenshots have not yet been added. Treat the guidance as documented or legacy material according to the status shown above.

BUILDER REPORTS

What the Adalo community is reporting

These are concise editorial summaries of public forum posts—not endorsements or independently reproduced results.

Accessing a simple list from a button

The solved thread confirms a working sequence from caregiver patients to patient details, patient medications, and medication details using Adalo record context.

Boundary: The accepted post reports the result but does not document every current editor control or authorization rule.

Kami (question) and Kami (accepted answer) · February 2026
VERSION NOTES

Sources and status

This page was last reviewed on Aug 14, 2026. Its current status is Documented from current sources.

Verification owner: Automatically organized from an accepted forum answer; monitored for corrections. Next review: Oct 14, 2026.

VERSION HISTORY

Changelog

  1. Automatically posted from a solved Adalo forum topic; corrections are monitored on the live site.

SPOT SOMETHING FUNNY?

Report this answer.

Forum answers post automatically. If a step is wrong, outdated, unclear, or missing an important boundary, send the exact correction and the editor will check the live page.

Report a problem
MONTHLY APP MANAGEMENT · BY REHOST

Rehost becomes the monthly team behind your app. Fixes, releases, integrations, and ongoing changes have an owner.

See monthly management
FixesHandled
ReleasesHandled
Next changesHandled
YOUR PROBLEM IS DIFFERENT?

Bring us the messy version.

Describe what you expected, what happened instead, and what you already tried.

Ask Adalocado