When working with the DocumentsCorePack Dialog, there may be some situations where additional readability or visual clarity is needed when it comes to working with Multiparts or user prompts. For example, when displaying optional documents in the Dialog, it may be helpful to add bold lettering or underlining to highlight important text within a label. HTML tags can be used for such purposes.
This article will cover how to use HTML tags to add formatting to labels displayed in the DCP Dialog.
Multipart
To add an HTML tag to a Multipart label, navigate to an OCA and go to the Template Settings step. In any label, you can add basic HTML tags, such as:
- <br> to add a line break
- <b> for bold text
- <u> to add underlining
- <q> to add quotes to text
- …and more
In the following example, we will add a <br> tag and a <b> tag to prevent text splicing issues and to give emphasis to the listed templates respectively. We will also color the bolded text red.
This is what the full text for one of our labels looks like:
Our template for <br>customers in the <font color="red"><b>USA</b></font>
The result of this can be seen below:
User Prompts
To add an HTML tag for a user prompt, navigate to a given user prompt and access its field properties. In the field’s label, you can add an HTML tag. In the example below, we’ll be adding an underline tag for emphasis.
In the Dialog, the label will appear as follows:
That’s it! We appreciate your feedback! Please share your thoughts by sending an email to support@mscrm-addons.com!