Use a rich text box on your Microsoft Office InfoPath form template so that users can add styled text, paragraph breaks, tables, photos, and clip art to a data-entry field.
Simply said, a rich text box is an area on a form where users can enter text, similar to a comments box.
Rich text boxes function similarly to text boxes in that they are merely forms where users may enter content, like comments boxes.
Users have the option to add yellow highlighting to a specific piece of text or put an image or table into a rich text box.
The rich text box’s browser version does not support partial rich-text formatting.
For a rich text box in a browser-compatible form template, you can allow connected photos. Embedded images are not supported, though.
Depending on whether you are creating a new, blank form template or based the design of your form template on a database or other external data source, there are small differences in the process for inserting a rich text box.
The AUTOMATICALLY CREATE DATA SOURCE check box in the CONTROLS task pane is selected by default when you construct a new, blank form template. As you add controls to the form template, InfoPath will be able to construct fields and groups in the data source automatically.
InfoPath pulls fields and groups from an existing data source, such as an Extensible Markup Language (XML) file, database, or Web service, if you base the design of your form template on one of these existing resources.
To modify the dimensions of multiple rich text boxes simultaneously, choose the rich text boxes you wish to resize, click PROPERTIES from the FORMAT menu, select the SIZE tab, and then make the required changes.
Utilize the FONT and FONT SIZE boxes on the FORMATTING toolbar to alter the text that appears in a rich text box.
Now let’s look at how to add rich text in Word.
The AUTOMATICALLY CREATE DATA SOURCE check box in the CONTROLS task pane is selected by default when you construct a new, blank form template.
Point the cursor where you want the control to be inserted on the form template.
Press ALT+I, C, or select MORE CONTROLS from the INSERT menu if the CONTROLS task window is not visible.
To access the Rich Text Box, click INSERT CONTROLS.
Double-click the rich text box that was added to the form template, pick the DISPLAY tab, check or uncheck the boxes under AVAILABLE FORMATTING, and then modify the rich text that users can enter.
Choose the field to store the rich text box data in from the RICH TEXT BOX BINDING dialog box, then click OK.
InfoPath labels the control with the name of the group or field. Change the label text as needed.
Now let’s investigate the rich text function.
Without knowing any code, you may add or modify text, images, links, and other elements on the website using the RICH TEXT EDITOR.
The formatting and content are shown exactly as they would appear in a browser.
With few exceptions, the rich text editor’s toolbar works similarly to a word processor.
By choosing the HTML tab located at the bottom of the editor, more experienced users who are familiar with HTML can examine the content in CODE examine.
Insert Table Wizard, Bold Font, Italic Font, Underline, Align Left, Align Center, Align Right, Numbered List, Bullet List, Indent, Outdent, Subscript, Superscript, Spellcheck, Insert Sitecore Link, Insert Sitecore Media, Remove Link, Hyperlink Manager, and Insert Symbol are among the features available on the rich text editor toolbar.
Let’s examine the types of rich text content.
Like classic "What you see is what you get" (wysiwyg) editors, rich text content can be created by authors using this field type.
The main distinction in this case is that pure JSON, as opposed to HTML, is delivered as the Contentful Rich Text Field (RTF) response.
It provides standard text formatting features like paragraphs, lists, and blockquotes; additionally, it enables dynamic linking between entries and assets from Contentful and integrates them seamlessly into the text’s flow.
One important feature of Rich Text is that it allows fields to be customized so that authors can only use predefined formatting options.
An abstract syntax tree-formatted JSON array of nodes is what is returned as part of the RTF API response.
Editors can link and embed entries into the text flow of the user interface (UI) using Rich Text.
The REST API’s raw Rich Text response includes links to related items and resources.