In my Change order process, isOwner should be allowed to perform function of "Submit", but they cannot.
Condition Script:
case 'SUBMIT':
conditionValue=isOwner();
conditionValue=inGroup('AMSafe Document Control');
break;
Library Script:
function isOwner(){
return(item.descriptor.ownerID === userID);
Am i missing something? Does it matter if users are logged in via their email address rather than user ID?
Solved! Go to Solution.
Solved by tony.mandatori. Go to Solution.
I think you're trying to do an or between isOwner and inGroup results.
So try rewriting like this.
case 'SUBMIT': conditionValue=isOwner() || inGroup('AMSafe Document Control'); break;