Contents
In your form, goto the properties of your name textbox. In the ‘Default Value’ part, click the ‘fx’ button next to the ‘Value’ field. Select the advanced view at the bottom of the screen then ensure you are on the GetUserProfilebyName field in the drop down at the top. Select GetUserProfileByName data source.
1 Answer
- Make the connection to SharePoint list where the users info are stored.
- In the form you want to pre-populate information select a card e.g. Payroll Name.
- Change the Default property of that card for something like.
How to Get current user display name in InfoPath?
1 Answer
- Set a field’s value: select the field for User Information List–>queryFields–>Account.
- Select infopath’s function userName() as the value.
- Then in the same rule I add the action to query the data connection for the User Information List.
How do you auto populate an Infopath?
How to auto populate field in InfoPath based on another field?
- Step1: Create a secondary data connection to the custom list “Defects Tracking” Click on the Manage Data Connection from the right side Fields panel.
- Step 2: query SharePoint list items using the Infopath data query.
And if he needs, he could change this field to different one. Here is the steps you can use to auto populate user name into the form Open any test list->customize InfoPath->click on people picker you want to auto populate-> right side->Fields panel-> (down) click on Show Advanced view->
I am using new form in sharepoint designer , so how will i autopopulate name picker field (Name of the submitter) to take logged in user name automatically when form is opened? For NewForm.aspx one of the best way is to use “spservices.js”:
How to autofill people picker column with logged in user name?
– SharePoint Stack Exchange How to autofill people picker column with logged in user name? I am using new form in sharepoint designer , so how will i autopopulate name picker field (Name of the submitter) to take logged in user name automatically when form is opened?
How to set defaults in person in SharePoint?
The idea for setting defaults in Person is similar to the other column types, but for person you need to specify one field that uniquely identifies the user within the Office 365 (and Active Directory) tenant that hosts the SharePoint list – you can have two people with the same name, so that should not be an option.