Can I modify the empty gallery placeholder image? (Screenshot inside.)

I am using the filter above to filter the dataset connected to the gallery. When a combination does not exist, this “error screen” shows up. Can I make it an image with a message to the user that combination doesn’t exist?

Isn’t that just a message to yourself as Admin through the Wix Editor or when you are viewing in Wix Preview mode? Especially as it states to click Manage Media to get started.

You can’t change that as it is default and if you are asking about something like that then it really should be going through Wix Support and not this forum as this forum is for code related issues on your site.
https://support.wix.com/en/about-wix/contacting-wix-support

However, if you want to add a lightbox or hidden box that appears informing the user that there is no match in your dataset, then yes you can do that by adding it into your code for the search using the three dropdowns.

@givemeawhisky I haven’t published the site, so it appears in the preview mode of the editor. I guess I can’t confirm what it will look like if it’s published. I made the filters with dataset filtering, so there is no code involved up to this point.

You cannot change the gallery widget placeholder, but what you can do is get creative with handling zero results. For example, you can hide another gallery with your own single placeholder image or message and show it if there are no results. You would need code for that. On change of the dropdown, check for dataset count, if 0 then hide / show, etc.

That sounds perfect! Maybe I can get into that level of coding.

@code-queen I’m trying to check if my dataset (already set to filter by dropdown changes) has 0 results. This will then trigger a visibility change to a line of text that I have defaulted to hide on page load. It’s not working right now, but here is the code I took out of another post and modified. Any suggestions why it doesn’t work?

You can just look at the code example in the Wix API Reference itself.
https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#getTotalCount

Or have a look at this previous post too.
https://www.wix.com/corvid/forum/community-discussion/using-if-else-to-define-which-elements-are-displayed

I read the note about having to wait until the dataset has loaded. With this code, the error message is always hidden. Maybe I haven’t built in any refreshing and it only knows the initial state has >1 items?
At one point I linked it to a dropdown click event, but I have three dropdowns, so do I have to seperately link it to events on all three dropdowns?

The script is nearly working. It’s very similar to the above, but triggered by dropdown change. The weird thing is every time I select a new option, the error code shows even though it should not. Once I select away from the option, then back, the error code works properly. I have no idea why it would act like that.
Also, once I copy the code for the two other dropdowns, all bets are off and it pretty much randomly toggles on and off.