Question

Photo of Derek Mangrum

1

User Entry Form Workflow Action validation on "Cancel"

Hello.

I have a User Entry Form Action in my workflow that I cant to be able to Cancel. I just create a Command Button labeled Cancel and have that trigger a Delete Workflow activity/action. The problem I am having is that, if there are fields on teh form that are required, then they have to be non-empty for the form to process. 

Maybe this needs to be a bug report or feature request. But, unless I am missing something, there needs to be a way to set a Command Button to process or bypass form validation. 

Something like...

ValidateForm001.PNG

Anyone have thoughts on a way to do this? Aside from just setting fields to not be mandatory. That functions, but not ideal. Thanks!

  • Photo of David Turner

    1

    You can create a new "Cancel" Button Type similiar to the "Primary" button type, but in the Button HTML instead of using the {{ ButtonClick }} merge field, just use "return true;" instead.  These are defined in the"HTML Button Styles" Defined Type.