"Submit" Button on Approval Process Flows

  • 2
  • Problem
  • Updated 3 years ago
  • Acknowledged
We now have a problem when a user hits a submit button (custom button with URL on SKUID page) for an approval flow.  This messages shows up-

We need to confirm that your request is valid. Please repeat your last action.
I've never seen that before.  Has anyone encountered this?
Photo of Colby

Colby

  • 614 Points 500 badge 2x thumb

Posted 3 years ago

  • 2
Photo of JD Bell

JD Bell, Senior Product Engineer

  • 2,996 Points 2k badge 2x thumb
Can you please describe the custom button? Do you mean that you created an <input type="submit"> element on the page? How is the URL specified? Do you also create a custom <form> element?
Photo of Colby

Colby

  • 614 Points 500 badge 2x thumb


Sorry, here's the button that I have-

<actions defaultlabel="Global Actions" defaulticon="ui-silk-wand" usefirstitemasdefault="true">
                        <action type="redirect" label="Submit for Approval" url="/p/process/Submit?id={{$Param.id}}&amp;retURL=%2F{{$Param.id}}" icon="ui-silk-lock-go" window="self"/>
                        <action type="redirect" label="Approve / Reject" url="/p/process/ProcessInstanceWorkitemWizardStageManager?id={{#$Model.Item.data}}{{Id}}{{/$Model.Item.data}}" icon="ui-silk-thumb-up" window="self"/>
 </actions>


It worked on Friday when I left the office and now it doesn't.


(Edited)
Photo of Tami Lust

Tami Lust

  • 5,280 Points 5k badge 2x thumb
Colby,

We had the same problem. With the SF winter 16 release this button now needs a confirmation token. The way I got around this was with Robs solution on this post. Hope this helps!
Photo of Colby

Colby

  • 614 Points 500 badge 2x thumb

Thanks, Tami! I got that to work.

Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
We are also taking a look at the new approval process requirements and evaluating whether Skuid can call the approval actions directly. 
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
I've added another option to the post Tami links to above.  Another way to fix this...