AnsweredAssumed Answered

Share Workflow Form Constraints

Question asked by stevegreenbaum on Nov 30, 2010
Latest reply on Dec 6, 2010 by gavinc
I am looking for a way to perform additional validation on form data when a transition button is clicked. Example, in a screen where there are two possible transitions: approve, reject, if Approve transition selected, then approve amount must not be zero. If reject is selected, then amount must equal zero. I don't want to put this logic in the transition since then I can't display the message on the current screen. Would the post processing filter allow me to validate the amount and not let them leave the screen if incorrect?

I've also looked at the constraint handler, but I don't know if I can put an event handler the click of a transition button. 

Can a constraint previously defined in the model be used from a constraint handler?  If so, how do you reference the constraint?  

Thanks

Outcomes