Hello I am trying to find a way to allow users to edit a repeating group but I am running into two issues. I have found a lot of information about editing repeating groups and have been successful in doing so in the past but this situation I am in is unique. I am facing two issues.
BREAKDOWN: I am using chat GPT on my bubble app that creates a movie script scene for users with character’s name and dialogue. However, I want the users to be able to edit the script that Chat GPT gives them.
Here are the two issues:
-
Because I am using one response from Chat GPT for the whole entire script, I need to use the Split by… functions in order to separate the different lines of dialogue in the repeating group. Because of this, I can’t use data as a type of content or data source because the function will be red and broken. Remember, if I don’t use the split by function then the chat GPT response will only use one cell of the repeating which will cause other issues for me down the road as I use text to speech and speech to text to allow the users to act out the scene with an AI scene partner.
-
When I use a custom state with a type of content “text” it then allows me to use the split by function and successfully divide the script character lines of dialogue into each different repeating group. However, then I cannot find a way for the users to be able edit each repeating group cell and make changes to each individual cell’s value. All of the tutorials and forum responses I have found all talk about editing repeating groups with database types. I have not found any ways to edit a repeating group with text / custom state as its source.
If I can solve one these problems then I believe I will be able to successfully have users edit the repeating group chat gpt script. It is a unique situation and I was wondering if any one knows how to fix one of these problems or perhaps even know an alternative way to accomplish this task in a different method. I would appreciate any feedback. Thank you.