Dynamic values in multiline text box

Hi!

Im building a recipe generator with the OpenAI API. The idea is that the user inputs (a prompt) text with dynamic values which are linked to input fields to complement the prompt:

So the dynamic values are added in the prompt textbox with brackets {} so the app know which inputs link to what values in the text.

The question would be. Is it possible to give the user the ability to add dynamic values to a text to extract the information from the related input? If so, how?

Thank you very much in advance!

Hey @jfavanhoof :wave:

I think what you are looking for is ‘Find and Replace’. You should be able to do what you want with this. :blush:

Hi, thanks for your quick reply!
I’ve been looking around for half an hour, and to be honest I don’t know what i’m looking for… Is ‘find and replace’ a plugin? Function?
Do you maybe have a link to some info or youtube video? Thanks alot!

I can see if I can try to set up an example. Find and replace shows up at the end of an expression as long as it is a text. :blush:

Lot to learn still I see…

If you want to do that it would be amazing!

Is this close to what you are looking for?

Preview: https://test805421.bubbleapps.io/version-test/recipe?debug_mode=true
Editor: Test805421 | Bubble Editor

1 Like

Im blown away by your speed and accuracy, this is exactly what I had in mind based on my question. Thank you so much! Really awesome you’re sharing your knowledge. I’ve tried to make an exact copy of the app. I managed 95% of it.

1 Like

Awesome :clap:. Glad I was able to help. :blush:

Keep up the good work. :raised_hands:

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