Focus group attached to a focus group

Hi there,

Im new to bubble. Im trying to build a search box that can Do a search for multiple data types.

What im using to build it :

  • An Input
  • focus group1 > reference element = input
  • Within that group a repeting group linked to datatype1
  • Fuzzy search plugin linked to datatype1
  • focus group2 > refercence element = focus group1
  • Within that group a repeting group linked to datatype 2
  • Fuzzy search plugin linked to datatype2

The issue there is that the focus group 2 appears ont the top of the page when doing a search. : Recordit: Record screencasts fast & free! with GIF Support!
When scrolling the focus group 2 properly attached itself to the focus group1.

Is there a way to fix this ? Or maybe there is a better way to build a search box that Do a search for multiple datatypes ?

Best,
Pierre

Yes, make sure your second focus group reference element is the first focus group or a group inside of it.

@boston85719

It is, but I still have the issue. Maybe it’s because both of them load at the same time ? I also tried to reference the second focus group on the repeating group inside the first focus group but I have the same behavior.

Focus group will automatically close when you click outside of it…so if you have the first focus group open and try to do a search again, the first group focus will close and the second group focus reference element will not be visible, thus pushing it to the top of the page.

@boston85719 I can understand that behavior but even on the first search the second group focus appears to the top of the page until I scroll down : Recordit: Record screencasts fast & free! with GIF Support!

My thought is the behavior I explained is still the cause, just a bit different in order of events. Seems you are trying to display both at the same time, and since the first is not open before the second, the second appears above

Then after some time, it seems to adjust itself properly

One thing you can do if you are stuck on the idea of having two separate group focus, is to delay the display of the second until the first is shown.

Alternatively you can put the two different repeating groups you are using into one group focus.

Putting the two repeating groups inside one focus group works well. Thanks a lot @boston85719

No worries. Glad you got it sorted. If you are ever interested in jump starting your learning process or face a road block and want to do some 1:1 coaching sessions, feel free to PM me for details.

1 Like

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