I would like to display both the Name and Department fields from a Person. So I can select two People columns and have one display Name and one display Department, but I'd like to autofill the Department column with the same person that was chosen for the Name column. How can I do this? Thanks!

  • Do you have infopath by chance? – GenePA Sep 11 '12 at 20:47
  • No, not that I know of. – Ryan Sep 11 '12 at 21:04

I typically do it behind the scenes with a workflow to update that column to the value specified in the form. This means the deparment field doesn't have to be on the form itself, making it shorter.

Other options include code on the Newform page.

  • I've tried looking at the workflows I have available, but none of them seem to fit the bill. What workflow template would you use? Perhaps I don't have the correct one available. Thanks. – Ryan Sep 11 '12 at 23:04
  • I just use update item actions and set the person field 2 to person field 1. – Eric Alexander Sep 12 '12 at 14:24

Here is an example of JavaScript utilizing jQuery for Newform page:

var $pickers = $('div[title^=People]');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.