cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow : How to make a field required only for the accept button and not the reject one?

ganie_
Champ on-the-rise
Champ on-the-rise

Hi,

On Nuxeo 5.6, using Studio, about forms in accept/reject tasks : I would like through the workflow designer to make a field required, but only for the "accept" button and not for the "reject" one.

I tried something by setting the required field to false and by using conditions on transitions in a way that I "manually" check the value of a given NodeVariable, if it is empty and the user pressed "validate", the user is redirected to the same task. But this lead to a user-confusing experience I'm trying to avoid.

The nice way would be to work at the jsf form validation level so the user is not redirected to an other page. Is it possible through studio? Is it even possible outside studio?

Thanks

1 ACCEPTED ANSWER
13 REPLIES 13

I tried the given solution, but it is not working. The form is submitted and no validation error is thrown.

strange, i tested it, and it seems murkein made it work too, so i don't know what could be wrong in your case, unless you have more details?

Remark

Hi, I tried use it with a input user suggestion widget but not working. It Only worked with my input type