SPArrangeUsers

Apr 6, 2011 at 4:31 AM

Is there a method similar to SPArrangeChoices for the people picker field?  I have a person or group field allowing multiple persons and need them to display horizontally on a display form, rather than vertically.

Coordinator
Apr 6, 2011 at 11:19 AM

There isn't, but I'm not sure I understand what you're looking for. The People Picker will just accept multiple values if that is the setting. In other words, there's only one form element.

M.

Apr 6, 2011 at 2:25 PM

For display forms, when there are multiple values in the field, it displays each name on a separate line like this:

User Name1
User Name2
User Name3

I'm trying to get it to display like this:

User Name1;  User Name2;  User Name3;

 

Coordinator
Apr 8, 2011 at 2:38 PM

Ah, I see what you're looking for. No, there's nothing in SPServices for this. I'd replace the LVWP on DispForm.aspx with a DVWP so that I could style it in the XSL. Or you could certainly do something similar with script.

M.