hi guys…

i have maked a list of different variables that my user should be able to use in a rich text element… but i got stuck now in how to insert them and how to display data in these varibales

as you can see here: i have maked my variables as a option set:

and these options my user are bale to chose from a dropdown menu… but i cant figure what workflow to use to insert a chosen variables into the rich text element

one of the thing my user can make is an order confirmation template for when there customer accept a quote… then there will be sent an email out with this template… (that part i think i know how to solve tho) but how do i replace the variables with actually data so a variabel like {{company_name}} display the actual company name

i hope someone out there have a easy fix for this… and want to help me out :slight_smile:

I do this for emails

I use unlayer for the drag and drop email builder but you can do something similar with text editor and just plain text.

I’d save the input when the variable is selected in the dropdown, then append it to the end of the input

not sure if you’ll be able to insert it at a specific location in the input - a way to do this would be to copy it to the clipboard and then the user could paste it at the cursor in the text.

to replace the variables with actual data I run a backend workflow that does a bunch of regex to find and replace the variables with data. toolbox plugin is the best here since it can be done in 1 step instead of 1 step per variable (although that is also a valid way to do it - just higher wu)

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