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 have a SharePoint blog where few people can contribute but everyone can comment. But they want to comment as anonymous. So I created a new column in Comments list called "Post as anonymous" with a check box value (Boolean value). Now, based on the check box value I want to change the "Created by" to "Anonymous" in Comments web part so that people cannot see the real commenter.

I tried to accomplish this by designing a Workflow in SP designer. But it turns out that there is no "Created By" in "Set field as" action.

Is there any way to accomplish commenting anonymously? without a third party application.

share|improve this question
    
I guess you need to create a custom Visual Web Part same as Commenting Web Part and then if Anonymous is checked... You should use SPSecurity.RunWithElevatedPrivileges to insert the comment in Comments list! –  Arsalan Adam Khatri Mar 29 '13 at 14:54

1 Answer 1

up vote 1 down vote accepted

There's really no way to do what you want in a true sense. If people are logged in, Created By will always contain their name, and you can't change it.

What you can do, though, is use a DVWP that hides the value if the box is checked. Just keep in mind that anyone who is smart enough to know where the Comments list is can see the real value.

share|improve this answer
    
I think this solution will work. Because I will be the single admin and I can hide the comments list access from other users.... –  Gravity M Mar 31 '13 at 2:15

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.