Jump to content

cascading dropdown


Recommended Posts

I need to filter the choices in a dropdown list, but rather than basing that on a user input in a parent field selection, I would like to pass in a parameter to filter the dropdown list. The functionality is exactly what Caspio provides with the cascading dropdown or cascading text field routine, but I need to pass the value rather than have the user input something. Is this possible? Thanks for the help.

Link to comment
Share on other sites

Hi @Sam23,

Basically, for the cascading dropdown to work, it should always have the parent field. 

As a workaround, it is possible to receive a parameter to the parent field and then hide the field with some CSS. So in total, the dropdown list will be filtered based on the received parameter but it will not be visible to the end-users. 

For example, if I want to filter the City Name based on the received State abbreviation. The StateAbbr is set to receive External parameter on load. And then it is hidden with the solution from this article: https://howto.caspio.com/tech-tips-and-articles/common-customizations/how-to-hide-fields-in-datapages/

image.png

The CityName field set up as a usual Cascading Dropdown:

image.png

I hope that will help! Feel free to update this thread if you have further questions.

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
Reply to this topic...

×   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...