What are Surveys?
The content manager's survey function allows you to set up surveys with different types of questions (text, multi-choice, numeric), present or render them to your users, and then collect and view the responses.
Surveys can be used for more than just collecting customer feedback. Because survey responses can be associated with order items, they can be used to collect miscellaneous parameters about customer orders. For example, surveys are used to collect the sender, recipient, recipient email, and gift message on gift cards. Using surveys to collect order information allows you to reuse the survey presentation and collection mechanism. This significantly cuts down on the amount of additional code needed to add more fields for specialized products. It will also allow you to view summary responses of customer orders.
Creating a Survey
Go to the content manager by following on of these links:
http://localhost:8080/content/control/main non-secure link, or follow https://localhost:8443/content/control/EditSurvey for the secure link.
If you will be using Surveys frequently, and wish to reveal the Content Manager Tab for easier access to the functions, read this info box.
INFO: "Content Manager" application is deliberately hidden (there is not visible Tab) in opentaps, but you can reveal the Tab by uncommenting the webapps in applications/content/ofbiz-component.xml. Then to open the Content Manager: Click: [Content] Manager Link > [Content Manager Application] drop down box > [Survey] > [Create New], or To Edit an existing Survey, Click: [Find] to open a list box of the existing Surveys, then Click: a Survey ID, in the "Survey ID" column to open the Edit Survey page.
Enter survey name. “Anonymous” means whether a user must be logged in to complete the survey. “Allow Multiple” means whether the same respondent (meaning logged in user) should be allowed to complete the survey several times.
Once created, click on [Questions]. You can apply existing questions from a category by selecting from the drop down. Then click on [Apply] for your individual questions, setting a Seq Number to control the order of them.
Alternatively, you can create the questions. Each question has a Name, a Question which will be shown to the user, and a Hint. The type determines what kind of a question it is. “Text – long” and “Text – short” are text responses. “Selected Options” is a dropdown of responses. “Email Address” is a special type of response that will be validated for being a real email address (firstname.lastname@example.org)
For more information about creating or editing Surveys refer to, Detailed Guide to Creating or Editing Surveys.
Associating Surveys with a Store
To associate a survey with a store, go to [Catalog] > [Stores]. Select a store. Click on [Surveys]. Add the survey to the store. “Random Poll” surveys are rotated through the ecommerce application.
If you wish a particular survey to be associated with one product such that the survey will pop up when the user adds the product to his or her cart, then select “Add-To Cart” and supply the product's ID.
The surveyTemplate refers to a file which is used to render the survey. This field must be filed in for the survey to be rendered. Enter the location of the template file, such as applications/ecommerce/templates/survey/minisurvey.ftl. You can use one of the existing template files or create one of your own for a customized look and feel.
Serving Up Surveys
Assuming you've created a survey and then added it to a store in [Catalog] > [Stores] >> [Surveys] or loaded in with a new entry of ProductStoreSurveyAppl, you can view the survey by going to: https://localhost:8443/ecommerce/control/takesurvey?productStoreSurveyId=1003
where productStoreSurveyId is the id of the ProductStoreSurvey you've created. Please note that this page will also display the results of the survey after the user fills it out, which may not be a desired result. Changing the done page is very simple in the controller.xml of the ecommerce application.
The CRM/SFA application also has a survey module which can be used to present surveys. See documentation on the CRM/SFA application.
To view responses, go back to [Content] > [Surveys], look up your survey, and click on [Responses].
Refer to User Manual page Marketing Applications