I am trying to implement an event handler i.e.
Do not allow user to submit task if field (Name) is empty on Web Verification Station
I tried multiple options :-
a. writing script in (Project Properties > General tab > “Edit Tools” button. Add “On Closing Document)
b. Project Properties>Stage Tools>Verification>Edit>On Closing document
but none of above gave me expected result. Still, task is getting submitted on web Verification Station even if name is empty. (with exceptions)
Script is :- (JScrpt.Net)
if(DocumentEditor.Document.Field("NE PO Def\\Name").Text=="")
{
CanClose.Value=false;
}
else {
CanClose.Value=true;}
In addition to it, extra processing stage is also created o handle rule errors but it is also not restricting user to submit the task with errors.
Did anyone face such issue and come up with solution?
Thank in advance
------------------