Popup "no results found" doesn't appear after 2nd time that repeating group list has no results

Hi,

I want a pop-up “no results found” to show when my repeating group list doesn’t show any results.

Here is what I did :

  • Do when RepeatinGroup Product’s List of Products:count =< 0 (run this every time)
  • -> Show popup no results found

Right now it works well if I do my query and load results page 1st time (repeating group having no results).

However if then I do a new query (right after), and repeating group having still no results, the popup won’t show up.

It will only show up if I load my results page 1st time or if I load my results page with repeating group having results firsts, and then load my results page with repeating group having 0 results.

Here is how it looks like:

use case 1

  • As a user I search for “Item X”
  • Result page is loaded. Repeating group has no results for “Item X”. Popup “no results” appears.
    Okay great!
  • As a user I then search for “Item X”
  • Result page is loaded. Repeating group has no results for “Item X”. Popup “no results” doesn’t appear.
    What is the problem?

use case 2

  • As a user I search for “Item X”
  • Result page is loaded. Repeating group has no results for “Item X”. Popup “no results” appears.
  • As a user I then search for “Item Y”
  • Result page is loaded. Repeating group has results for “Item Y” (so obviously popup “no results” doesn’t appear).
  • As a user I then search for “Item X”
  • Result page is loaded. Repeating group has no results for “Item X”. Popup “no results” appears.

So the no-pop up showing up happens only if i consecutively load result pages with no results.

If anyone can help on this! Thanks :slight_smile:

Up on the topic. Thanks!

Up again

hi Charles,

i pmed you.
regards,
Julius

Hey @charlesloumeau,

Do you have a button that triggers the search or does the repeating group filter live as the user changes the filter parameters?

Hi @eli, thanks for your reply :slight_smile:

I trigger it when there are no results in repeating group of product results :

Here is my app if you want to see bug : Found - rechercher des produits disponibles en magasin

As said, the popup “no results” will appear only once : if I continue looking for non-available products, the pop-up won’t show up.

Ok, so when you navigate to the same page in Bubble it doesn’t actually reload the page though it will change the url parameters etc.

Therefore, what you are getting is not a page reload, just a query parameter change, and Bubble sees your repeating group as simply in the same state it was already in – i.e. the RG count was 0 and it’s still 0. There’s no actual change so the Do When True event won’t trigger.

Try putting the show popup workflow as one of the steps in your search event rather than as a do when true or you could leave it as is and use the clear list action on the repeating group. That may work as well.

Hi @eli

I see what you mean there! I will try your solutions in the next coming days :slight_smile: Thank you a lot for taking time to analyse and answer! Love this community

This topic was automatically closed after 70 days. New replies are no longer allowed.