Lets say I have a form with an input element for the customer’s name.
I can either type it, if I know it, or select it from a repeating group (containing the customers info from my database) that is inside a popup that shows up when I press a button on my form.
Each record inside the repeating group has a button to select it, but I can’t figure out how to send the name of the record selected on the popup back to the input element on the form.
I know there may be other solutions for this specific case, like a dropdown menu instead of the input and the popup, but this is just a simple example.
It may be the silliest question, but Im a beginer with Bubbles and couldnt find anything related on the forum.
I have done with custom state, and it works when the element to display the selection is an input box (I show the state on the initial content field from the input box, and I reset data each time I select an option from the Repeating Group, to erase whatever the input box had on it and load again the new selection. I’m still not quite sure if this is how it is meant to be done… but it works).
Now I tried to do the same with a search box, instead of an input box, and I can´t make it work. I tried to call the value of the custom state on the default value of the search box, but it wont accept it. I can call it on the placeholder, but I dont like it as solution.
Can this be achieved with the search box element, and it’s just I’m doing something wrong, or is it just not possible?