I could really use some help. Trying to figure it out for days
Goal: To display the selection from a dropdown / checkbox / inputfield / slider in a repeating group into a multiline input form.
Situation:
I am trying to make a AI user form builder.
I have a repeating group with a datatype (in this case called CT_Dropdown). Within the repeating group there is a group. Within the group I have a text ‘title of the thing’ and a dropdown form with dynamic options.
Every cell has a different thing, as seen on the screenshot ‘1’. In this case there is:
Thing’s title: Main role animal
Thing’s title: Target group of the story.
These ‘things’ are made by the user. Thus the things in the repeating groups can be anything.
I also have an multiline input form. See screenshot 2.
I am trying to use find&replace:find&replace et cetera… to find the corresponding unique id of the thing and replace it with the value from the (in this case) dropdowns from the specific cell.
What I already tried is 2 things:
Use custom states. Unfortunately it doesnt seem to be an option since the things in the repeating group can be any ‘thing’. So every ‘dropdown’ thing in this case will be linked to 1 an the same CS.
I made a field for the ‘dropdown’ thing called ‘user-selection’. But thats also not an option because the page will be re used by other users. So the field ‘user-selection needs to be empty. Otherwise other users will be seeing other users’ selections.
I am very very curious how I can resolve this. Has anyone happen to have an idea or can give me a push in the right direction?
It will use Openai’s ChatGPT API to create stories (in this example).
The input fields (dropdowns) with selection options and prompt are made by a user in a template builder on another page.
The inputs are repeating groups with cells. In this case there is only 1 repeating group with 2 cells.
I thought it would be possible to use ‘find&replace’ in the prompt (textfield A) to search for the selections within the cells but I can’t seem to connect find&replace to a specific cell’s dropdown’s value.
At first it would be a solution to just create a thing for each selection and try to link to that. But that’s also not possible because the template will be used by multiple users at a time.
Is this a better explanation? And better yet, do you have a solution in mind ?
TL;DR: How do you use dynamic selections within a cell outside of it and show it in a multiline input.
Oh, it might be something to do with the way Bubble hides certain actions from elements within RGs or hide those elements within RGs from outside actions.
I do not have a solution in mind yet, but I have a few more hours before my brain shuts down so I’ll keep seeing if I can.
For the last:: You can create a custom state on the RG itslef, and then set the custom state to the cell content on click (within workflows). that way, the content of the cell is available outside the RG
Blockquote
Oh, it might be something to do with the way Bubble hides certain actions from elements within RGs or hide those elements within RGs from outside actions.
Yes, thats why I unofrtunately can not link it directly to a selection within a cell.
Blockquote
I do not have a solution in mind yet, but I have a few more hours before my brain shuts down so I’ll keep seeing if I can.
Thats awesome, thanks!
Blockquote
For the last:: You can create a custom state on the RG itslef, and then set the custom state to the cell content on click (within workflows). that way, the content of the cell is available outside the RG
Unfortunately thats not a solution because the user makes those dropdowns and other input forms. A custom state is fixed. If a user makes/adds a dropdown, slider or anything else, there is no custom state linked to it.