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

Validation is occuring above the property

SA-35414

Summary



Validation error message is displayed above the Property as shown below:


Error Messages



Not Applicable


Steps to Reproduce



1. Include a property making use of PickState Out-of-the box (OOTB) control.
2. Include a validate rule configured for this property to perform validations and to display the message.


Root Cause



The issue reported is due to the usage of non-auto generated control - PickState.

In this control, the place where the code to display the error messages is kept is causing the error to be shown between the label and the control.

Also please note that it is best practice to use the auto-generated controls whenever possible for ease of maintenance and upgrade.

Resolution



Perform the following local-change:

Instead of PickState control use OOTB drop-down control with list source as defined on the property and on the property rule use the 'Field value' Table Type with pyState as Field value of the Data-Party class as shown below.

This complete combination will work as the PickState control and also places the error messages at the right place.



Published April 7, 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