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.

Published June 9, 2017 - Updated July 26, 2017

Have a question? Get answers now.

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