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?
Phone Number is bound to a single line of text field in SharePoint
SharePoint 2013 on-prem
Solved! Go to Solution.
I haven't seen it documented anywhere, but SetValue rules are not executed on form load.
you'd need to make rule's 'When' formula depended on an other control which's change would trigger the rule to execute.
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
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.