This documentation is archived and is not being maintained.

OkToVote Element

Windows SharePoint Services 3

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Used to determine whether a specific user can vote in a survey.






Minimum: 0

Maximum: Unbounded

This element requires that a SetList element be implemented for the appropriate survey; otherwise, the behavior of the OkToVote element is undefined.

The OkToVote element renders as follows:

  • 0 — It is OK for the currently authenticated user to vote in the survey whose internal name is u_Survey.

  • 1 — The user cannot vote because u_Survey has no questions.

  • 2 — The user cannot vote because he or she has already voted in this survey.

This element can be combined with a Switch statement to take actions, depending on the user's status in relation to a particular survey.