Jump to content
  • 0

Filter Dropdown List (or something better...)


skwaler

Question

See Table relationships attached

Editing a screening record, I want to choose which site is assigned to the screening.

I can't add a "Choose Site" dropdown  and fill with "sr_tbl_sites" because not all site are assigned to the study.

How can I create a dropdown list that shows only the sites that are assigned to the study that the screening belongs to?

Is this possible? (so frustrating that caspio doesn't give more options to filter a dropdown list) 

 

Is there some other way to do this? Perhaps a popup window that would list all the assigned sites, then allow user to select one?

i.e.(Update the screening record, close pop-up and then refresh parent page)

Capture.PNG

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Hello @skwaler,

My first thought is to use the Cascading Dropdown (https://howto.caspio.com/datapages/datapage-components/cascading-elements/), however,  you need to test this. 

If your sr_tbl_study_sites table includes all studies and sites that are linked to them, then you may use this table as a Lookup table for Dropdown to select the Study and Cascading Dropdown to select the Site.

Link to comment
Share on other sites

  • 0

Hi @CoopperBackpack

Thanks for the tip. 

It works if I create a virtual dropdown that has the study_id selected as parent.

Then using a cascading dropdown with source = sr_tbl_study_sites and filter by study_id

The remaining issue is that the site_id is used as display in the dropdown even though I have site_name set as display value in the relationship.

Is there any way to display the site name?

image.png.5bf27cdc1193fa2b324bf135f70f4bbe.png

image.png.d6ab68038c21ea624e27a2f61f7bfff9.png

Link to comment
Share on other sites

  • 0

Hi, I'm not sure if this is what you are looking for, but have you already considered applying Record Level Security for your dropdown to filter out the dropdown options based on the filtering fields that you selected? If not, then you may want to give this a try:

https://howto.caspio.com/authentications-and-connections/authentication/record-level-security/filter-lookup-dropdown-or-listbox-based-on-user-or-role/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...