# display a modal dialog without using a flow action

**URL:** <https://forums.pega.com/t/display-a-modal-dialog-without-using-a-flow-action/6499>\
**Category:** General\
**Tags:** 8-8-3\
**Created:** [March 23, 2024, 5:09pm UTC](https://forums.pega.com/t/display-a-modal-dialog-without-using-a-flow-action/6499 "2024-03-23T17:09:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaxonL16591286](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@MaxonL16591286](https://forums.pega.com/u/MaxonL16591286)\
**Post date:** [March 23, 2024, 5:09pm UTC](https://forums.pega.com/t/display-a-modal-dialog-without-using-a-flow-action/6499/1 "2024-03-23T17:09:00Z")

</div>

Is it possible to display a modal dialog without using a flow action?

Sometimes we just need popup a msg to user and user simply click Ok to close it.

We have to use a local action for this which look too trouble for such a simple thing.

Thanks.

---

<div class="post-metadata">

**Author:** ![SoumyajitB1](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/soumyajitb1/32/5894_2.png) [@SoumyajitB1](https://forums.pega.com/u/SoumyajitB1)\
**Post date:** [March 23, 2024, 6:25pm UTC](https://forums.pega.com/t/display-a-modal-dialog-without-using-a-flow-action/6499/2 "2024-03-23T18:25:40Z")

</div>

Hi@MaxonL16591286\

For this requirement you might have to write a custom javascript code in a non auto generated section. Use this javascript on click event of the section on which you want to render the modal dialog.

For the above requirement you can use Alert box or Confirm box or Prompt box. Please have a look in the below link for code snippet.

> **[JavaScript Popup Boxes](https://www.w3schools.com/js/js_popup.asp)**
>
> JavaScript has three kinds of popup boxes.
