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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.