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 component keeps new value even when clicking cancel



In the edit screen of a work object, user has a button that opens a modal dialogue.

This modal dialogue has Date or Time field and Text fields.

When user changes the date time to a new date and click Cancel instead of submit.

Next time when user opens the modal dialogue, user finds that value of the Text field goes off, but value of DateTime field stays.

Error Messages

Not applicable

Steps to Reproduce

  1. Include a button in a section.
  2. Configure a Modal Dialog (contains DateTime and Text fields) to be opened on click of that button.
  3. Run the usecase and give some values to the DateTime and Text fields. For Example, change the date/time value to 01/01/2017.
  4. Click Cancel (of the Modal Dialog).
  5. Reopen the module dialogue and observe that 01/01/2017 is still there.

Root Cause

A defect in Pegasystems’ code or rules:

In the Presentation tab of the DateTime field, “Display value using read-only formatting” option is enabled which is causing the issue.


Perform the following local-change:

Disable the “Display value using read-only formatting” option.

Suggest Edit

Published July 26, 2017 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

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