Nintex form - approver must be the same person

  • 20 November 2017
  • 6 replies
  • 0 views

Badge +8

I have a nintex form with two sections which relates to a person approving two different things.

What I need is the person who approved section one only to be able to approve section 2. The approved field is a choice field with two choices: To be confirmed (default) and approved.

When the approved field is completed the system collects the username of the person who updated the field and put it in the approver name field.

What validation do I need?

Can you say that a field must be completed by username xxxxxx?


6 replies

Badge +16

on the control can you have appearance > enabled > expression

and expression to make use of this function?

Returns true if the current user is the same user specified in the string value.
fn-IsCurrentUser(string loginname)

You could pass in the approver of section one?

Badge +8

Thanks Cassy 

So for the return of true/false - what happens? If its false does the error message show?

Badge +16

your expression for the control being enabled equates to the outcome of that expression.

i.e. if person is approver 1 - enabled = true

if person is not approver 2 - enabled = false

Badge +8

Hi 

I don't seem to have the expression field. I tried you suggestion in the validation, but no luck.

Badge +16

in the above - under appearance and enabled - choose dropdown and choose expression

Badge +8

Many thanks  it works!

Reply