For the managed package runtime, combine plain text and merge fields inside a rich text editor with the Text element in the Flexcard Designer. Enter a merge field, such as data fields, or context variables, such as session variables.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
The Text element's rich text editor adds an HTML div for each text section to build the layout of the element. Add SDLS and
NDS classes and other formatting options to each div to style your text.
- In the Flexcard Designer, drag the Text element from the Build panel into a state on the canvas.
-
To update the default text, from the Properties panel, click into the rich text
editor to override the content.
Beginning Spring '22, the default font for a Text element is System Font, which is the native font your operating system’s UI provides.
- (Optional) To add a new block of text, click return to create a new div.
- (Optional) To add data field values, select from the Fields list in the rich text editor. You can also manually add the field by entering the field name surrounded by single curly braces, such as {Type}.
- (Optional) To add custom labels, enter the {Label.customLabelName} merge field anywhere in the rich text editor. For example, to add a custom label for AccountName, enter {Label.AccountName}. See Add Custom Labels to Supported Fields on a Flexcard (Managed Package).
-
(Optional) To add a context variable as a merge field, enter it any div. For
example, enter {User.userProfileName} to add the logged-in
user's profile name. See Flexcards Context Variables (Managed Package).
Note
The rendered User global context variable is visible at run time only, such as in Preview or when Flexcard is published to a page.
- (Optional) To undo a change, click the Undo icon.
- (Optional) To redo an undone change, click the Redo icon.
- To style the text within the rich text editor, see Style Text in the Rich Text Editor of a Flexcard Text Element (Managed Package).
- (Optional) To add conditions that must be met for the element to display, see Add Conditions to a Flexcard Element (Managed Package).
What’s next: (Optional) To style your element, click Style to open the Style panel, and see Style Flexcard Elements (Managed Package).
- Style Text in the Rich Text Editor of a Flexcard Text Element (Managed Package)
For the managed package runtime, style plain text and merge fields inside the Flexcard Text element's rich text editor. Enter a merge field, such as data fields, or context variables, such as session variables. - Flexcards Text Element Properties (Managed Package)
For the managed package runtime, Text element properties are configurable in the Property Panel when you select a Text element in the Flexcard Designer. With the Text element, combine plain text and merge fields using a Rich Text Editor.