Skip to main content


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

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

Referencing HTML Property Rules in Harnesses and Sections

Updated on September 13, 2021

This presentation is part of the Advanced UI Techniques Self-Study Course.

Transcript

The use of Rule-HTML-Property rules allows for the consistent display of properties wherever they are referenced, for example in HTML forms or Correspondence templates.

The following rule types have forms that allow Rule-HTML-Property rules to be referenced directly:

  • Rule-Obj-Property, with the HTML input in the presentation part of the form
  • Rule-HTML-Section, where you can override the default presentation for a particular property
  • Rule-Obj-FlowAction, where again you are allowed to override the default presentation for a particular property
  • Rule-Obj-ListView
  • Rule-Obj-SummaryView

All other HTML rules allow for the manual inclusion of Rule-HTML-Property references via the Reference JSP tags or HTML directives (which is deprecated).

When defining custom Rule-HTML-Property rules, it is important to include two out of the box rules:

  • Validation Messages: to ensure the full functionality of validation display
  • Client Side Validation: to ensure client side events handling is maintained

If the Validation Messages is not used, when that property is validated, for example in a flow action post activity, the error message regarding that validation is seen in an errors element at the top of the HTML.  While this serves a purpose and displays messages back to the user, it is not the most user-friendly way of alerting the user. 

By including the messages Rule-HTML-Property rule, when validating property values for flow action validate rules or post activities, the user sees the out of the box red cross and the desired validation message upon hover over.

The more complex the Rule-HTML-Property becomes, the longer the forms that references the related property will take to load.  This becomes even more important when considering reporting type rules such as list view and summary view rules.

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