0
votes

I want to create a leave form list, where there are some fields like Name, Email id which need to be populated from user information list.

User Information list used for creating user in SharePoint. When we have all information in User information list then I need some fields value of it to be displayed to the corresponding fields in the Leave list.

I mean to say the user who is filling a new form whose information's should be pulled up from user Information list and filled into it into the leave form.

I don't know how I will achieve this. Please help.

1
Do you want to add a record in another list or populate data from the list and display in a new entry form ?Sigar Dave
populate data from the list and display in a new entry form. User infomation's (logged in user) should be populated and display into new entry Leave form.Indranil Sarkar
What you have done so far ? getting an error ? or required first step to where to start from ?Sigar Dave
I don't know how I will do this. No idea how I will populate the information from user information list and display into new form of Leave list. Can you please provide some stepsIndranil Sarkar
Leave list has two fields Name and email id. I want these two fields should be come automatically from logged in user list (User information list).Indranil Sarkar

1 Answers

0
votes

To get the current user details like name and Email address then you will require to query the Active directory.

To fetch the data from the Active directory follow this code .

https://sharepoint.stackexchange.com/questions/62929/get-current-users-department-name-and-manager-from-active-directory

If you have developed a custom new form then you can write a code there and fetch and filldata in the appropriate firle