How to submit a Flow Action in Javascript ?

Is it possible to submit a flow action in javascript code ?


The context is the following : in an iFrame, I want to submit the flow action of the parent window.

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.


Keep up to date on this post and subscribe to comments

March 20, 2015 - 4:13pm


I found this example on the internet, I don't have 6.3 handy just now but I if the submit button calls a function (like in 7) and doesn't just perform a post this may work.

    function abc()

<iframe id="myFrame">
    <a onclick="parent.abc();" href="#">Call Me</a>

Please let me know if this works.


Cecil Howell, CSA |  Senior Instructor  |  Pegasystems Inc.

March 23, 2015 - 4:40am

Hi Cecil,


I did it with the following thing (I don't know if there is a better way) : window.opener.document.forms[0).submit();

March 24, 2015 - 5:18am

Hi Simon,

Are you want to call a flow action and displays the section in the same harness action area ( I.e.pycaseactionarea ), as like when you launch a local action from Other Actions/Actions tabs.

We can achieve this by customizing the pega provided JS function, PFB

Suggested Approach:

 Pega is calling a JS function handleMenuActions to launch a local action form Other Actions/Actions tabs, below are the parameters for this function.

 handleMenuActions = function (actionType, prevTaskIndex, event, taskIndex, actionName, insHandle)

 actionName = Flow action name

 We need to save as this function in our rule set and customize to launch a flow action from button actions i.e. CLICK.