Starting a new line in email body using BBcode

I have a training/on-boarding project that quizzes users after completing a course section.

I email the quiz results of every section to the user’s direct manager so the manager can review. Ideally, I would like the email body to be formatted as follows:

Quiz Results: (Percentage)

Question: (Question’s text)
Correct Answer: (Correct Answer Text)
Their Answer: (User’s Selected Answer’s Text)

I have an “Email” data type with a “Email Body” attribute.

I’ve accomplished the formatting by using list html tags like so
image

Doing this does give me the results I want but it also stores the text in the database verbatim. Given that as of now there are no requirements to interface with the Email data types on the front end, I don’t think that this is a problem.

However, I am curious to know how labor intensive this is to process in bubble as apposed to using javascript, or even creating a list of things in bubble to accomplish the same thing.

I avoided the list of things method because I didn’t want everything listed out and separated by commas to then have to use find and replace to create new lines. I thought this would take more time in bubble then the html tags method.

Maybe I’m wrong…?

Any input would be greatly appreciated.

Thanks,

1 Like