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

DateTime field with calendar displays as a blank



On selecting a date from the UI, the date displays as a blank intermittently. This occurs on converting the date from  ‘dd/MM/yyyy’ to ‘dd-MMM-yyyy’ readonly format and allowing text entry.

Error Messages

Not Applicable

Steps to Reproduce

  1. Launch the application
  2. Configure multiple Date fields.
  3. Select dates quickly for these fields. 


Root Cause

A defect in Pegasystems’ code or rules.

The date is blank due to the missing 'Display readonly formatting' feature. When readonly conditions are configured on the control, editable control displays in the response instead of readonly.
This must be corrected by setting the isEditable variable to false if the Reload cell request is for readonly formatting. For a control that is always 'Editable', the 'Display value using readonly formatting' checkbox must be hidden.


Perform the following local-change: 
  1. Change the pzGenerateControl Rule Utility Function (RUF) to set isEditable to false when getReadonlyFormat is true.
  2. Compile and generate the pzGenerateControl RUF and save the section that is configured with the DateTime control logoff and login.
  3. Apply HFix-30664 which includes the above changes.
  4. Remove the explicit Post Value action configured on the Date fields.
  5. Remove the Refresh other Action on the Date field where Refresh other Section is configured.
  6. Add the below script in the UserWorkform HTML fragment.

    function customRefresh(sectionName) {
        setTimeout( function() {
        pega.control.UIElement.Actions.refresh("otherSection", sectionName ,undefined,  ""); }
        , 1500);

  7. Add the RunScript action to invoke the script included in the UserWorkForm.

Published March 27, 2020 - 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