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

Set value of a field in Nintex forms is not working

Jump to solution

Ultimately what I'm trying to do is populate a Phone Number field from the SharePoint user profile service on New forms. I'm trying to use a Control Rule with the Set Value method and I can't get it to populate using any values, even after simplifying the rule. 

 

I think I'm missing something fundamentally, because to me it looks like it should work. Screenshot of the rule attached.

 

Any ideas on how to get the Set Value to work?

 

Thanks

 

More info: 

Phone Number is bound to a single line of text field in SharePoint

Responsive form

SharePoint 2013 on-prem

Version: 2.11.2.20
Labels: (1)
0 Kudos
Reply
3 Replies
jpmhuls
Nintex Newbie

Re: Set value of a field in Nintex forms is not working

Jump to solution

The rule does not seem to be connected to the control.....

0 Kudos
Reply
emha
Nintex Newbie

Re: Set value of a field in Nintex forms is not working

Jump to solution

I haven't seen it documented anywhere, but SetValue rules are not executed on form load.

 

i.jpg

 

you'd need to make rule's 'When' formula depended on an other control which's change would trigger the rule to execute.

 

 

 

 

0 Kudos
Reply
dyermull
Nintex Newbie

Re: Set value of a field in Nintex forms is not working

Jump to solution

Thanks for the advice. I was able to get the SetValue rule to work by changing the rule to depend on another control's value, and that works at run time. Unfortunately if SetValue rules don't execute on form load, I can't use this method.

 

So ultimately what I would like to do is populate the phone number field with the user's user profile property using

userProfileLookup(Current User,"WorkPhone")

 

I've tried this solution: https://community.nintex.com/t5/Nintex-for-SharePoint/How-to-use-a-calculated-default-value-in-a-sin... and got it to work, but it's not ideal.

 

If there's any advice on a better solution to populate a field with user profile properties at form load, I would love to hear them. In any case my original posted question was solved. Thanks again.

 

 

0 Kudos
Reply