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

Modal dialog moves up on selecting checkboxes

SA-59752

Summary



Modal dialog window moves up on selecting checkboxes.






Error Messages



Not Applicable


Steps to Reproduce

  1. Configure a button.
  2. Configure a modal dialog on the button click local action.
  3. Configure a grid in a section of the modal dialog.
  4. Configure a section in the grid
  5. Configure a checkbox in the section (Toogle button).
  6. Configure a 'Refresh other section' (modal dialog section) on the checkbox.
  7. Configure another section in the grid of the modal dialog, with Visibility condition depending on the checkbox value. The modal dialog data changes based on the checkbox value.


Root Cause



The position of the modal dialog changes because data is added to it.


Resolution



Perform the following local-change:

1. Add the below function in the UserWorkForm. Add a Run script on the checkbox in the modal dialog and invoke the function.

<script>
function myfunction()
{  
document.getElementById("modalContent").style.position="static";
}
</script>   *Place the script in UserWorkForm

2. Add the below style in the UserWorkForm such that the modal dialog position is fixed.

<style>
  .modal-align-table
  {
    position:fixed !important;
  }
</style>

Published July 23, 2018 - 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?

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