Services Plugins FAQs

Assign a value to the input based on a clicked element

Goodmorning everyone . I am facing a new problem.
I will describe everything I have done in such a way that it can be useful to someone and / or to get advice to improve it, up to the problem that I can not solve.

I needed to create a searchbox that would take data from an external api service. To do this I essentially used 2 plugins:

  • ZQ fuzzy search & autocorrect
  • Key stroke input trigger

NB. I could also have done without the first plugin, but I found in various tests that the response is faster than doing it only with repeating groups.

I set up the fuzzy ZQ plugin like this

By setting the ID for my searchbox.
After that I used the second Key stroke input trigger plugin like this

At this point in my workflow I have access to a new action that is, input monitor started

after which I simply set that, it must update my search data based on what is written in my input box.

Nb. I have set the search to start only after at least 2 characters are written, but it is completely optional.

Now we come to my problem.

I would like when I click on one of the possible choices, returned to me by my external api, my search input takes that value. How could I do such a thing?

ezgif.com-gif-maker

Hi, @edmondum!

Thanks for reaching out!

Actually, your case is quite enough interesting and non-trivial which requires doing lots of testing perhaps. I am afraid I cannot give you a workable solution on this matter because it is related more to bubble logic behind and plugin computability which we cannot influence. However, I should say that the ZQ Fuzzy Search action- Update Datasource Search&Autocorrect fuzzy isn’t working properly at this moment and we’re investigating this case already. If you’d like I may inform you once this is done.
Additionally, please take a look at the thread that probably can give you the idea of how it can be leveraged with external API: https://forum.bubble.io/t/search-and-auto-correct-with-an-external-api/84977/5?u=zeroqode.

Best, Julia.