Sending data from a repeating group to an input

Suggestion repeating group:

Input Field

Hi Guys,

Hope you can help.

I have a repeating group of suggestions I can’t work out the flow of when clicking “Use Suggestion” for that suggestion to populate the input field.

Any help massively appreciated.

Hi there,

I’d suggest doing this with a custom state of type Text. Set the Input’s default value to that custom state. When the ‘use suggestion’ button is clicked, set the custom state’s value to This Cell’s text (or similar).

Ah yes, great idea…

Ill try that and report back!

Thanks for the reply, appreciate you amigo!

1 Like

You’re correct about that! I often forget Bubble has different naming conventions for different element types. In this case I would use the Input’s Initial Content.

This will work until the user enters data into the input field; if this is a possibility you wish to avoid, you can add a step of ‘Reset Group’ prior to the set custom state, which should clear the group’s inputs and therefore be receptive to an Initial Content’s value changing, and therefore appearing in the input’s ‘Initial Content’

Screen Recording 2024-06-18 at 9.05.20 PM_2

1 Like

Yiou’re a star! … That worked perfectly thanks a million!

1 Like

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