cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

Forms rule to invalidate field if contains value from other field person or group

Jump to solution

I have two fields on a Nintex form: Document Owner and Document Approver(s). Both are person or group fields. 

I need to create a rule that if the Document Approver(s) field contains the same name as the Document Owner field, it becomes invalidated. The Document Approver(s) field is not restricted to only one person.

Essentially, I need to limit a person from being both an owner and approver for a document and would like to do this through rules on the Nintex Form. 

I can make it work with only one name in the Document Approver(s) field using this rule: DocOwner === DocApprovers, but that validates with equals, not contains. 

Labels: (1)
0 Kudos
Reply
4 Replies
Highlighted
Nintex Employee
Nintex Employee

Re: Forms rule to invalidate field if contains value from other field person or group

Jump to solution
Hi,

Have you tried the contains runtime function? contains(string, element)
0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Forms rule to invalidate field if contains value from other field person or group

Jump to solution

Hello, thank you for reponding. I have, but don't know what to put in as the element. 

 

=contains(DocOwner, "?"). DocOwner is the Named Control, and I tested with the element as both the Item Propery, "Doc Owner" and the Named Control, "DocOwner" and neither worked. 

 

=contains(DocOwner, "Doc Owner")

=contains(DocOwner, "DocOwner")  

0 Kudos
Reply
Highlighted
Nintex Employee
Nintex Employee

Re: Forms rule to invalidate field if contains value from other field person or group

Jump to solution
contains(DocApprovers,DocOwner)

View solution in original post

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Forms rule to invalidate field if contains value from other field person or group

Jump to solution
Perfect, thank you! I shall now go brush up on formula basics in shame :)
Appreciate your quick responses and help.
0 Kudos
Reply