cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Update People field to CurrentUser when another field is selected

Jump to solution

I am an InfoPath person so I am used to using rules!

I have a field called "Current Status" which is a drop down list with "Approved" or "Rejected".

What I am trying to achieve is when a user selects the status, e.g. Approved, that the following field "User name (A people picker field) is updated with the Current User.

In the example below, I select "Approved" but then searched my name....I want the action of selecting "Approved" to populate the User field with the CurrentUser.

DefaultCurrentUser.PNG

Labels: (1)
Tags (1)
0 Kudos
Reply
3 Replies
Workflow Hero

Re: Update People field to CurrentUser when another field is selected

Jump to solution

Hi Michel

people picker control can be set by javascript api, see People Picker Extensions - Nintex Forms from Emily Billing .

Assign a Custom validation function to the status control where you can check status and assign user to people picker control.

Kind regards

Manfred

0 Kudos
Reply
Workflow Hero

Re: Update People field to CurrentUser when another field is selected

Jump to solution

unfortunately, I am not a java/vb developer....just a basic person trying to build a form, so I am not sure how or where to use this code, but thank you for pointing it out.

0 Kudos
Reply
Workflow Hero

Re: Update People field to CurrentUser when another field is selected

Jump to solution

Hi Michael,

Unfortunately Nintex Form rules do not currently support the filling of other controls with data at this time.  However this seems to be a highly requested feature as you can see and vote for it on the User Voice forum at the following link: Use Nintex Form Rules to set the value of controls / list items without needing to use Java Script c...

Just a few quick tips to get around the situation might be to:

Fill in the text with the Current User - but only enable it by using a Nintex Form Rule, or set it visible by using a Nintex Form Rule - these are two operations that the rules do support.   Another option would be set the value in the workflow which you can check whether or not Approve has been selected.

Thanks

-Mike

Reply