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

Pega Validation not triggered for a label marked required

SA-71306

Summary



A label and a field are created and the label is marked required.
In Pega 7.1.9, a validation message, 'Value cannot be blank', displays and forces users to enter details in the fields.
Post Pega 7.4 update, users can submit the screen and validation is not triggered.



Error Messages



Not Applicable


Steps to Reproduce

  1. Add a label and mark it required in Pega 7.1.9.
  2. Add a field associated with the label and do not mark it required.
  3. Submit the work object. Validation is triggered.
  4. Update to Pega 7.4. Validation for the label marked required is not triggered.


Root Cause



An issue in the custom application code or rules. A free form layout is implemented which is deprecated. Along with the label, the fields or control were not marked as required.


Resolution



Perform the following local-change:

Use a dynamic layout instead of the free form layout (as it is deprecated), and perform the below steps:
  1. Drop the controls in the dynamic layouts.
  2. In the General tab of the Property panel, search for an option to provide labels to the control.
  3. Check the 'Use property default' checkbox if the property label is used, else do not check the checkbox and enter the label text. In this case, explicit label controls are not required (design has only dropdown controls or another control). The label name in the property panel of the control is implicitly mapped to the control. An additional label control and 'Label for' option is not required.

Published April 4, 2019 - Updated December 2, 2021

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