The following steps will help you to add current logged in sharepoint username in infopath forms.
1. Create a new form by Designing a New Form Template
2. Choose blank form Add a text box to the form ("UserName")
3. Go to Tools Form Options
4. Go to the Open Behavior section and click on Rules
5. Add Action to Set a Field's Value
6. Choose the field you added above as the field to populate
7. For the value, click on the Fx button and choose Insert Function
8. View "All" in the Categories drop down
9. At the bottom you'll see userName, pick it
10. The formula that gets dropped in is userName()
Now preview this form, you'll see your UserName in "UserName" field.
Thanks,
Vikas Sharma
41 hillsong a megachurch exposed
2 years ago
No comments:
Post a Comment