Support Article
Issue with modal dialog
Summary
While performing client-side validations or adding embedded page to a list on click of a button or link, when the modal dialog is open, the values are posted before the submission. However, the value is still present on the Clipboard on clicking Cancel or closing it. The remaining values which pass the validations also remain on the Clipboard after the user clicks the Close icon or the Cancel button. However, the original values must be restored after closing or clicking Cancel.
Error Messages
Not Applicable
Steps to Reproduce
- Create an on-click event on a button on the screen
- Open local action in modal dialog
- Configure an input field inside modal dialog such that the section refreshes on change of the field
- Discard the modal dialog by clicking the Close icon (X). The value entered in input field is not discarded, instead, it is saved on the Clipboard
Root Cause
Temporary page is not used in modal dialog.
Resolution
Perform the following local-change:
Design using temporary pages whose values are copied to main properties after submitting modal dialog.
Published April 10, 2020 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.