Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: Question Regarding SPGetCurrentUser

$
0
0

I'm working on a site where a form might be filled out on behalf of the manager of an employee, by say a supervisor. The form however, required Employee's manager information be filled out regardless of who submitted it.

This would be an easy nut to crack if I knew for a fact that only the manager would fill the form out and could use SPGetCurrentUser to prefill the current user's data, but in the case where a supervisor is filling out the form, I'd like to have the following scenario:

Supervisor (or manager) enters the MANAGER's user ID and clicks a "Fetch Information" (or something) button. We then use SPServices to go fetch the relevant profile information and prefill the fields in the form based on that User ID.

How can I do this with SPServices? How do I set a variable so that SPGetCurrentUser is really looking up the user information of the user specified in the "Manager's User ID" field?

Thanks for any assistance or insight!


Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>