I have 2 inputs. The first input is seen on page load and the other (input 2) lives in a floating group that’s visibility is toggled via workflow.
I want input 1’s value to show in input 2 but I can’t seem to get it to work.
So far this is what I have applied to Input 1:
For context, input 2 is nested inside a parent group, within the floating group.
Okay, if I understand correctly, when you change Input 1 on the page, that value should also be visible in Input 2? The best way to do this is by creating a custom state.
- Create a custom state.
- Create a workflow that triggers when Input 1 is changed - set the state.
- Save (set) the value of Input 1 to the state.
- Set the initial content value of Input 2 to the state value."
In Bubble.io, custom states are variables that can be created on an element (or page) and can store data temporarily without the need for the database. This method is using a custom state to store the value of Input 1, and then using that state to display the value in Input 2.
So I just tried that and input 1 isn’t a choice as an element within input 2’s initial content field.
That’s how I understood the instructions, unfortunately at 0:33 sec input 1 isn’t a choice as an element within input 2’s initial content field for me.
I suspect is has something to do with how my input 1 is nested? Below is a screenshot of the input 1 structure, labelled as “Add Task Input”:
Did you select auto-binding? In a repeating group this is also working.
Auto-binding is off on both input elements
Can you send a screenshot of the options you do have in the input field? Even in a floating group I have the option Initial Content.
Input Task Name is input 2 and Add Task Input is the name of input 1.
I figured out a way without using custom states at all but by using the display data workflow.
Thanks for your help though @martijntenpas
This topic was automatically closed after 70 days. New replies are no longer allowed.