How to pop up a modal dialog at loading of a flow action?
Scenario: When a case handler open his assignment, when the following flow action / section is open, we need pop up a modal dialog conditionally to tell something to the case handler. Then, he press button to close the modal dialog and start working on this section.
We know we need a local action to pop up a dialog. We have used it before when user click a button in a section / before submit a section, etc.. but no idea how to pop up dialog at loading of a flow action.
Could kindly help? Thanks.
@MaxonL16591286
Is this a requirement to display the modal dialog when the user picks up the case from his worklist or other list screens? or during the case workflow between assignments?
Also, please let me know the intent of the modal dialog before showing the actual assignment. This could be a usability issue for the user to respond to the modal dialog and then work on the current assignment.
Can you please clarify?
@RameshSangili
It’s NOT during the case workflow between assignments.
It’s to display the modal dialog when the user open his assignment from below task list
Each line in the list is an assignment.
Usually, user click the “Sub case” column to open his assignment, then a following action run / a section shown.
The related flow is like below.
Now we want to a model dialog displayed before the flow action start, or, during the loading of the flow action/section. As long as user can see it before he can work on the assignment.
About the intent, it’s exactly what you mentioned:
"for the user to respond to the modal dialog and then work on the current assignment. "
We need tell some important thing to the user before he work on the assignment.
Many thanks.
@MaxonL16591286
use below code to auto trigger a button click event on section load.
The button has hidden class and will open a local action for modal dialog on click.
<script>
$(document).ready(function () {
pega.util.Dom.getElementsByClassName("hidden", "button")[0].click();
});
</script>