Field references in Rich Text

Hi,
i am very new to Bubble. So far i love it :slight_smile:
Question
i want to store contracts and agreements in a database. These consist of Customer Data (name, address,…) and text (Rich Text). As the text is also a matter of changes i want to keep this dynamic to users

Is there a way to include data fields (reference) data fields in a rich text, like in other Mail Merge applications?

thank you!
Lambert

Yes, you could define your own set of data placeholders - something like {{datapoint1}}. Your users could insert these wherever necessary.

And then run a :find&replace on the rich text entered to replace the placeholders with corresponding data from your DB.

1 Like

super! thank you very much
does the :find&replace need a predfined list, or can i loop throgh all {{ … }} it will find?
k

You can run multiple :find and replace operations one after the other to cover every placeholder you have. Each :find and replace will replace all instances of the placeholder/target keyword you define in it.


Cheers,
Ranjit from Atomic Fusion

Explore and reuse the community’s Bubble assets & Accelerate your Bubble development with Atomic Fusion

1 Like

great … i think this solves it… as the amount of placeholders is finite…
thank you

1 Like