Skip to main content

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.

Support Article

Tags are getting misplaced when source for paragraph is viewed

SA-37389

Summary



The tags are getting misplaced when user view source for paragraph with Pega 7.1.9.


Error Messages



Not Applicable


Steps to Reproduce

  1. Create a Paragraph rule.
  2. Go to source code
  3. Paste the below text:

<ul>
<li>&nbsp;
<ul><pega:when name="SampleWhenRule"> </pega:when>
<li>&nbsp;</li>
</ul>
</li>
</ul>

4. Toggle the source code button observe the un-ordered list elements get rendered multiple times.


Root Cause



As identified the root cause, this is due to applying the when rules to HTML block elements.

Resolution



Type: Local-change

Local-change: User requested not to use When rule for HTML block elements, When rule should be configured to inline block elements (span tag) like below:

Changes made :


<ul>
<li>&nbsp;
<ul>
<li><pega:when name="SampleWhenRule">&nbsp; </pega:when></li>
</ul>
</li>
</ul>

Published May 16, 2017 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration 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 Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us