purtuga / SPWidgets

Sharepoint Custom UI Widgets
74 stars 34 forks source link

programmatically set default user #62

Closed netsuper closed 8 years ago

netsuper commented 8 years ago

Is there a way to add an SPuser to the peoplepicker as a default? I am retrieving an item from a SPlist including a person type and want to "put" that persontype field into the pickSPUser as the default?

Hope that makes sense... Scott

purtuga commented 8 years ago

Hi.Yes that is possible.  Use the 'add' method documented under the Methods section for this widget: https://github.com/purtuga/SPWidgets/blob/master/documentation/SPWidgets.pickSPUser.md There is an example usage there as well.  Paul -- sent from mobile

netsuper commented 8 years ago

Thanks, I had tried that before, but this time it worked?!

purtuga commented 8 years ago

Cool. Glad it worked.