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

Using a section on two different pages, showing unexpected

SA-21178

Summary



The user is using a section 'A' twice in other section 'B' . In section 'B' he has included section 'A' directly and is also using section 'A' in Repeat Dynamic Layout which repeats the section 'A' based on a page. Please note that this Section 'A' contains mandatory fields in it.

Now the issue is during runtime when two section As are there on screen , (one which is directly included one and other is because of repeat dynamic layout), when the user enters the mandatory fields only in first section and submits , its showing validation error on properties in the second section which is not expected(as the second section is referenced through page).
Also the labels of the mandatory fields in the first section which are filled are appearing in red which is ideally not expected


Error Messages



Property validation error


Steps to Reproduce



1. Create section1.
2. Create another section2 and include section1 directly and include section1 through page reference in a repeating grid layout.
3. Note that Section1 has mandatory fields.
4. At runtime, when the values in the section1 are made empty, then validation error is thrown, however, it shows validation error at the other controls as well.
5. Also the labels of the mandatory fields in the first section which are filled are appearing in red.

Root Cause



A defect in Pegasystems’ code or rules: In this particular case the error elements have the same id. Hence the label's 'for' attribute was the same in each case. The logic to find the label in this case returned the first label element in the DOM always.Modified the logic in PEGA_VALIDATORS!JS to pick up the nearest label (from the error element)

Resolution



Apply HFix-23537

Published March 19, 2016 - 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