Hi All,
I want to validate task form fields based on conditions. How can i achieve it? Please provide me the possible ways to achieve it?
I knew that by enabling the "Required field" check box in the form builder properties window of any field will validate it, But i need to validate those fields based on some conditions only.
My Scenario:
In a workflow for a manual activity a Task Form was created and mapped to a manual activity. The manual activity Task Form will have fields to enter. These fields are all SDT's and added to the process properties as process variables. One field named "amount_field" is the field we need to validate only based on conditions.
If its value is more than 50 then allowing Task Form for forwarding. If its value is less than 50 validate it and throw error. The validation should have to be executed while clicking forward button only not to be executed while clicking close, reject, delegate or accept.
NOTE:
I have tried implementing Item validators and document validators to validate task forms. But i noticed that the item validators and document validators is validating the form on clicking of any button of the task form. Since Task forms buttons like Accept, Delegate , Forward, Close, Reject control buttons does submit a form and thus all Document Processors or Document Validators or Item Validators who are configured to be invoked on form submit are getting executed.
So how can i achieve this challenge. If any one have any idea please share it.
Thanks
Arun