How to Populate People Picker value on Child Item
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?
//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?
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)
-
- Information
-
Who is online
Users browsing this forum: No registered users and 14 guests