Jump to content
  • 0

OR/AND Logic for search and dropdown menus


prodbykmoney

Question

Hey everyone,

I'm working on the search function of a DataPage comprised of a name search as well as dropdowns for Country/Region, State/Province, and City. I want to make it so that a user can either type to search for a name in the records without using the dropdowns, OR use the dropdown options to pull up records. So far using the OR logic allows for both to be used, instead of either or. Is there a way to rectify this?

screenshot-c1hbn455.caspio.com-2023.02.25-20_57_38.png

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi

I don't know if this is what you wish to do but here is my idea:

7EjLzhe.gifajcw7kl.gif

You can do this by using Rules and Virtual Field:
https://howto.caspio.com/datapages/forms/conditional-forms/

Also, you might want to check these articles out:
https://howto.caspio.com/datapages/datapage-components/autocomplete/
https://howto.caspio.com/datapages/datapage-components/cascading-elements/

Link to comment
Share on other sites

  • 0
20 hours ago, SushiPizza said:

Hi

I don't know if this is what you wish to do but here is my idea:

7EjLzhe.gifajcw7kl.gif

You can do this by using Rules and Virtual Field:
https://howto.caspio.com/datapages/forms/conditional-forms/

Also, you might want to check these articles out:
https://howto.caspio.com/datapages/datapage-components/autocomplete/
https://howto.caspio.com/datapages/datapage-components/cascading-elements/

Hey! Yes, this is exactly what I'm looking to do, thank you so much!

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