How to Populate People Picker value on Child Item

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Jdubs
Posts: 73
Joined: Fri Dec 19, 2014

03 Sep 2015

I'm using the following code to pre-populate information on a child form from the parent form (when using Related Item control):


//Pre-populate Information

fd.field('CheckType').value(window.top.fd.field('CheckType').value());

fd.field('CheckNumber').value(window.top.fd.field('CheckNumber').value());

fd.field('ProvisionBatch').value(window.top.fd.field('ProvisionBatch').value());

fd.field('Payee').value(window.top.fd.field('Payee').value()); <-- People Picker

fd.field('Payor').value(window.top.fd.field('Payor').value()); <-- People Picker




The code works great, except for People Picker fields. The information passes as blank.



Is there a way to populate that information?

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

03 Sep 2015

Depending on what type of people picker you're using and what type of information you can use to identify users there are different ways to do this, please check http://spform.com/forms-designer- ... eld-values For example, if you're using single server people pickers and want to use emails to identify users you can do:

Code: Select all

fd.field('Payee').value(window.top.fd.field('Payee').value().dictionaryEntries[0].Email)

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests