Monday, May 28, 2012 1:30 PM
I am trying to achieve this:
Format text of column depending on user identity.. In custom list there is one column named BOSS of type USER/GROUP. I would like to change font to red of some field (or something else) on items where actual user [me] is contained in BOSS field.
Is it possible ??
HOW ? J
Tuesday, May 29, 2012 8:15 AMModerator
Please try the following step to set conditional formatting when BOSS field contains current user.
- Insert Data View Web Part (DVWP) by clicking Insert > Data View > Empty Data View > Select the source list > Select some fields to display on the DVWP and insert them as multiple items.
- Add a parameter to DVWP by clicking Parameters > New Parameter named it Param1 > Select Server Variable as Parameter Source and Type LOGON_USER ad Server Variable Name > OK.
- Create conditional formatting by selecting the HTML select when you want to apply the formatting > Click Create button under Conditional Formatting pane > Apply Formatting > Click Advanced button in Conditional Criteria window > type following
XPath expression > click OK.
- Save the page and DONE.
Let me know if you have any further question.
Thanks & Regards,
TechNet Community Support
- Marked As Answer by Emir LiuMicrosoft Contingent Staff, Moderator Wednesday, June 06, 2012 3:31 AM