Hi, I have looked at several posts but can’t seem to figure this out. I have a “service request” form. Once submitted, it goes to my team for review. I just wanted to add a button that will populate the people picker control (ie: Assigned To) with the Current user. It basically saves you from manually selecting your name if you decide to “take ownership “ of the request. But I cannot figure out the code needed to populate the people picker control.
Solved! Go to Solution.
I suggest using the Advanced section --- Connected To setting of the button to change the value of a field, for example set a Status field to Request Accepted, then create a simple workflow that is triggered off that change and sets Assigned To = Initiator. You'll probably also want to make the button visible only to members of your team by using an expression in the Visible setting in the Appearance section.
have a look eg. on this example
(it's not exactly on button click but it might get you on track)
see as well PeoplePicker API documentation