custom HTML in Section : how to resume flow action

Hello,

I have created a custom html that have a link.

when i click to the link, i want finish the task so that the user can have the next section of the flow process.

i try theses solutions but it’s not working.

use a script :

<script>

function test{

var option = {

name:"ResumeFlow",parameters:[{name:"flowAction",value: "page2", isProperty: true},{name:"flowName", value:"Page3",isProperty:true}],contextPage:"",event:"click"

};

page.api.ui.actions.runActivity(options);

};

</script>

<a href="test()">click me</a>

**use JavaPage : **

<a ref="<pega:url value='pyActivityName=myactivityClassAndName'></pega:url>">click me</a>

Can you tell me if i miss something in the process ? or do you have a better solution ?

best regards.

Yeun-Ho Chung

You can try the below approach.

Keep the link in auto generated HTML section and then embed this new section in you custom HTML.

<pega:include name=“SectionName” type=“Rule-HTML-Section”/>

In the new section, on the link configure the below event action.

OnClick------> Finish Assignment

Thanks you it work perfectly :stuck_out_tongue: