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

Have created a feature(list provisioning) to update the "showuser" property of the survey list and stappled on the webapplication, it works perfectly fine and sets the list property when the survey list is created. However, facing the issue when accessing and saving(without any changes) the general setting of the survey list, it actually resets the showuser property to false. Is that an expected behavior? how to fix this issue?

share|improve this question
add comment

1 Answer

The General Settings contains the "Show user names in survey results?" which is the ShowUser property.

I just did a quick test then using PowerShell and a simple survey and the value stuck when changing it both in PowerSell and in the browser general settings page.

Here is my powershell script to test:

$site = New-Object Microsoft.SharePoint.SPSite("http://mysite")
$web = $site.RootWeb
$survey = $web.Lists["Mysurvey"]
$survey.ShowUser = $false
$survey.Update()
share|improve this answer
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.