Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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!

share|improve this question
    
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
add comment

2 Answers

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

var $pickers = $('div[title^=People]');
$pickers.eq(0).blur(function(){
  $pickers.eq(1).html($(this).html());
});
share|improve this answer
add comment

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.

share|improve this answer
    
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. –  PirateEric Sep 12 '12 at 14:24
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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