Search and tags not working

Hi everyone — losing my mind a bit so hope someone can help! I am trying to have two search functions for my site gallery – one to search by name, and one to search by tag. I have followed several YouTube tutorials which require either coding, databases or repeaters. I seemed to get bits working but not all of it.

I have the database set up, and the connectors in place but when I go to preview my site, the search function is greyed out with one of the names and can’t be changed, and the tags just stay as ‘option 1’ etc.

I’m sure it’s something to do with the coding which I just can’t seem to get right –– even when I copy and paste it from a tutorial.

Anyone any ideas?!
LikeComment

When it is greyed out, that means you have no permissions, or your READ-WRITE on DATASET is setted wrong.

Thanks, I just checked this and previewed again and it is still greyed out but it is pre-filled with one of the fields from the database.

You should give more information, to work with. Not enough input. It is hard to imagine every step of your project. My brain EXPLODES :grin:

Show more of your project like…

  1. Database-structure.
  2. Project-flow (how works your project).
  3. How are setted up your datasets?
  4. Which permissions are given in your database?
  5. Do you use a drop-down? If yes, how it is setted up.

The DROP-DOWN can also be the problem.

You can also show a pic (part of your database —> Header + first data-row.)

Apologies – sure thing. This is what I’ve done:

  • I have a gallery which has many images which all link to pages

  • I then created a database with some (but not all) of the same images and titles, links etc

  • I then linked the database to the images

  • I then added a text input and connected that to the database.

  • I followed this (https://www. youtube .com/ watch?v=Hx7_8-lRsW0&ab_channel=Wix.com) tutorial and clicked ‘view properties’ and enabled the ‘OnPressKey’ function. I tried to copy and paste the code from here (https://www. wix .com /corvid/forum/tips-tutorials-examples/how-to-create-a-search-for-your-database) but it didn’t work

  • I then added a tags function from the input menu and connected that to the database to see if this would be easier to set up. (ideally, I would want both the name search and the tag selection)

I now am able to type in the text input field but it still pre-fills it with one of the image names and doesn’t filter when you type.

@pablo

I can give you an example which works with tag-filtering, but do not know if it is the same case/situation as yours.

In this example you are working with TAG-FILTERING…
https://russian-dima.wixsite.com/meinewebsite/filter-my-phones

And here you can see an example where 2 FILTERS are working in combination (multi-filter).
https://russian-dima.wixsite.com/meinewebsite/blank-3

You can combine both functions.