Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Creating paragraph rules

Updated on December 13, 2022
Applicable to Theme Cosmos applications

Improve the maintainability of your application by creating a single source for crucial application text. By using a paragraph control or directly referencing a paragraph rule, you can add long-form rich text to your interface. Paragraphs contain up to 1,000 characters of rich text, which you can reuse in many contexts in your application.

For example, your business might involve a disclaimer statement that you want to include in the footer of your page, in a form, and in emails to users. You can set up a single paragraph rule to hold the disclaimer and reference it in your interface, and when you want to change the disclaimer text, you only need to edit the paragraph rule.

  1. In the header of Dev Studio, click CreateUser InterfaceParagraph.
  2. On the New tab, define the record properties:
    1. In the Label field, provide a meaningful name for your application.
      For example: legalDisclaimer
    2. In the Context section, select the ruleset and case to which you want to apply the paragraph.
      For example: Select the Customer service option, and then, in the Apply to list, select the customer service case layer option to make the paragraph available to all cases in the application.
    3. In the Add to ruleset field, define the ruleset in which you want to create the paragraph rule.
    4. Click Create and open.
  3. On the Paragraph tab, in the text editor, enter the text that you want to include in the paragraph.
  4. Optional: To reference a property in the paragraph text, in the text editor menu, click the Insert property icon, and then define the property parameters.
    For example: In the Name field, enter .pyYear to include the current year in the disclaimer.
  5. Optional: To reference a rule in the paragraph text, in the text editor menu, click the Insert rule icon, and then define the rule type and parameters.
    For example: In the Type field, select Rule-HTML-Paragraph, and then in the Name field, enter companyFooter to include a paragraph with a standard company footer in the disclaimer.
  6. Click Save.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us