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

Field format is incorrect in modal dialog

SA-21230

Summary



Modal dialog is launched from a link. In modal dialog, there are date and amount fields which have formatting set. There are few mandatory fields in the section. On a button, Runscript for doModalAction is configured. At runtime, when the modal dialog is opened and if the mandatory field is made empty and the button is clicked, then the format of date and amount fields are incorrect.

Example: Date is configured as   DD/MM/YYYY
               After the scenario, it is  D/MM/YYYY 

Error Messages



Not applicable

Steps to Reproduce



1. Create section1 which has a link -onclick , configure local action to launch modal dialog(section2).
2. Section2 has Date field, Amount field, another input field Field1(Mandatory field). Add a button, on click, configure RunScript 'doModalAction'
3. Set formatting of Date field to MM.DD.YYYY and set formatting of Amount field as well and set some default value for Field1.
4. Run section1 from a flow.
5. Click on the link and open the modal dialog.
6. In the opened section2, all the fields have the formatting defined.
7. Remove value from the mandatory field and click on the button- Runscript.
8. The formatting of Date and Amount fields are lost.

Root Cause



A defect in Pegasystems’ code or rules: PZPEGA_UI_DOC_SUBMIT!JS

Resolution



Apply HFix-26633

Published March 23, 2016 - 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