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
- Create a Paragraph rule.
- Go to source code
- Paste the below text:
<ul>
<li>
<ul><pega:when name="SampleWhenRule"> </pega:when>
<li> </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>
<ul>
<li><pega:when name="SampleWhenRule"> </pega:when></li>
</ul>
</li>
</ul>
Published May 16, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.