Support Article
Action Buttons in a local action does not work in Firefox
SA-10146
Summary
User clicks ‘Add task’ button in the Operation’s Check In tab. User then enters details required and clicks on "Save to Dispatch" and "Save to Payroll" buttons. The click action does not work in Mozilla Firefox browser but works fine in IE.
Error Messages
Not Applicable
Steps to Reproduce
1. Create a section which contains a button with a click event. The action of the event calls a local action in a modal dialog.
2. Inside the Modal section, there is another button which calls a script function.
3. Create a javascript file. Inside, there is a function, ‘SubmitModalDialog_UserConfirmation’. This function calls another function, ‘CompassSubmitModalWindow’ which closes the modal window.
4. Create a flow action and flow to run. In the ‘Perform’ Harness, add the javascript file under ‘Script & styles’ tab.
5. Use IE browser. Run Flow to execute the use case. Click ‘Add Task’ button and then click ‘Button Inside Modal’ button inside the Modal window. Observe that the modal window disappears.
6. Now use Firefox browser. Run Flow to execute the use case. Click ‘Add Task’ button and then click ‘Button inside Modal’ button inside the Modal window. Observe that the modal window stays. It does not go away.
Root Cause
The root cause of this problem is a defect in Pegasystems’ code/rules.
Resolution
This issue is resolved through the following Local-change:
Modify CompassOperationScript to let the event parameter pass to the function.
The following is an example:
function CompassSubmitModalWindow()
{
doModalAction(pega.u.d.submitModalDlgParam,event);
}
function SubmitModalDialog_UserConfirmation(msg, event)
{
if(msg == "")
{
CompassSubmitModalWindow();
}
else
{
pega.u.d.doModalAction(pega.u.d.submitModalDlgParam,event);
}
}
Published June 12, 2015 - 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.