Poll and Surveys Component

Note: This article refers to the legacy application Publish, used in versions below 8.1.
In modern versions, the Pages application has effectively replaced the need for Publish.
Continue reading if you are using Publish and wish to implement this smart object.

Please note that the image above is a generic representation of the component, and may not necessarily reflect the final product on your own intranet.

  Before proceeding, please read the overview of smart objects and components here.

Poll Component

Copy and paste the code below into a publish template.

<component class="HomePagePollsList" hide_if_empty="1">

  The component must be placed within a publish template and not within a publish page.

Users will see any active polls they have permissions to. Users can cast their vote, but will be redirected to the homepage afterwards.

Remove attribute hide_if_empty="1" if you wish to make this component always visible even through there is no active poll.

 


Surveys Component

Please note that the image above is a generic representation of the component, and may not necessarily reflect the final product on your own intranet.

Copy and paste the code below into a publish template.

<component class="HomePageSurveysList" hide_if_empty="1">

  The component must be placed within a publish template and not within a publish page.

Users will see any active surveys they have permissions to. One of the following statuses will be displayed for each survey:

  • Available: Survey is active and available for completion. User has not yet started the survey.
  • In progress: User has started but not completed the survey.
  • Completed: User has completed the survey.

Users can click on any of the survey links to begin or continue it.

Remove attribute hide_if_empty="1" if you wish to make this component always visible even through there is no active survey.

Last modified on 24 July 2019 by Michael Christian
Created on 8 July 2013 by deleted user

Was this helpful?  

1 Like
Share

[Discuss]

photo
{{ comment.user.is_me ? cc.translations.my_comment : comment.user.name }} {{ comment.user.is_me ? cc.translations.my_comment : comment.user.name }} {{comment.user.name}} [wrote]...
[Reply] [Like] [Unlike]  {{comment.like_count}} [person] [people] [liked this] [Edit] [Delete] {{ comment.timestamp.date_str }}

[Loading...]