Rich Text Input – Flow Screen Component

Updated 1/20. Cleanup. converted to LWC.

This is an extremely simple port of the standard inputRichText control to work as a Flow Screen Component.

screen shot 2018-01-24 at 9 01 56 pm

How It Works

This component exposes a single attribute called “value”. It can be used both as an input parameter to set the starting values and as an output parameter to pass out the selected time.

You can display the rich text output of these components in Flows, using either the standard Display Text Field or the new formattedRichText Flow Screen Component

Note, though, that the standard Flow Display Text field is capable of displaying some of the rich text effects, but not all:

screen shot 2018-01-24 at 9 05 12 pm

Variable Handling Notes

When added to a screen, this screen component currently has Manually Specify Variables (Advanced) turned on. to get the value out of it, you’ll want to map the value to a variable of type Text. However, you can also turn off manual specification of variables and use automation output handling. Some of the tradeoffs are discussed here.

Installation

Unmanaged 1.2

Resources

View Source

0 0 vote
Article Rating
Subscribe
Notify of
guest
9 Comments
Inline Feedbacks
View all comments
Josh Dayment
Josh Dayment
3 months ago

I couldn’t get the newest version to work unless I had default text in the component in the flow not sure if it is something I messed up or where the issues resides it all seems pretty straightforward let me know what info you need from me to help troubleshoot (if it’s worth it)

Alex
Alex
3 months ago
Reply to  Josh Dayment

Send me credentials at aedelstein@salesforce.com and I’ll take a look

Bachir
Bachir
2 months ago

Hi Alex and thanks for your work.

Strangely enough, I can’t see and set the component label – I want to use it on a screen element.

Would you know why ?

Andrew S
Andrew S
1 month ago

This is great! I’m trying to figure out how to reference a User’s email signature with line breaks included. Any ideas? thanks

Josh Dayment
Josh Dayment
7 days ago

I added in text color and a label to the LWC in my org happy to share the code not sure where to share it I am pretty new to creating/adjusting my own LWC

Alex Edelstein
Admin
5 days ago
Reply to  Josh Dayment

are you familiar with pull requests? We’d be happy to take one from you. learn more here: https://unofficialsf.com/the-salesforce-automation-and-decisioning-wiki/wiki-developing-for-flow/

Andrey Shestakov
Andrey Shestakov
5 days ago

My input value is record rich text field, output value manually assigned to the this exactly field. When initial value is null (empty text field), and I typed some text on my screen flow, the output value is still null.
If the input value is not null (some initial text exists), and I edited the text on the flow, the output value is the edited text.
Wonder why?

Andrey Shestakov
Andrey Shestakov
5 days ago

Even if input and output variables are different, when initial value is empty text, the output value is also null no matter what text was entered on the flow.

Annotation 2020-05-31 1849.jpg

Andrey Shestakov
Andrey Shestakov
5 days ago

When the initial value is some text, the edited text is relayed to the output variable.

Annotation 2020-05-31 1852.jpg