← All posts

2019-01-16

Creating Questions on Survey with Survey Force app

Cover image for "Creating Questions on Survey with Survey Force app"

This is a mobile app that enables the end user to create questions for a survey that is , conducted. This was to obtain a feedback from the end client. Let us find first what all are the requirements of the client. First, we needed to create a survey and there are various types of these questions that constituted a survey. We offered the following solution for the client. In both Salesforce Community and Lightning. But let us find out more about “What is the Solution that we offered ?”. The Solution We have a make a survey option and there are 4 tabs inside this option. These are share, edit, header with thank you and CSS and Results.

  • Edit Tab

This tab has two subsections

  • Add Questions
  • Add Sub header and Body

A. Add Questions We have multiple options here - single select (horizontal),  single select (vertical), Multi-select(vertical), free text and rating options. The user selects any of the above options say single select (vertical), from the pick list. Single select (vertical) On selecting the same question type, you navigate to a different page where you type the question and you state whether the question is required or not - by clicking on the checkbox for this field. Now, the user provides the answer in the box provided and Save the record. Survey Force question editor with question type set to Single Select vertical and Yes/No answers The question is created as shown in the below screen. Test Survey Edit tab showing the newly created single-select question with Yes and No answer options Note : There is message that is displayed on the screen that the record is saved successfully. There is a delete button for deleting the same question. Next, example is to create a single question(vertical). Test Survey Edit tab with a saved confirmation banner and a second single-select vertical question added The only difference that lies between the horizontal and vertical is that the answer appears in a vertical manner. Multi-select Questions These type of questions are nothing but multiple choice questions. This is as shown in the below screen. Survey Force question editor with question type set to Multi-Select vertical and numeric answer options The user can make multiple choices here, while answering these questions. These multiple choices are shown in the screen below. Test Survey Edit tab showing a multi-select question with three of four checkbox options checked Free Text As shown in the below screenshot, in this type of question, the user can type an answer in paragraph or in the form of a free text. Test Survey Edit tab showing a free text question with an open answer text box Finally, the last type of our question is that of ratings option. Here the user will have ratings stars appear as answers. Test Survey Edit tab showing a ratings question displayed as a row of five stars B. Add Subheader and Body This is when the user would like to choose a single header say for two questions for segregating them into sections. This is explained in the below screen. Sub Header and Body dialog for grouping survey questions under a named section The user here need to click on the Add Header and Body as section name and the corresponding description say Section A and the description is typed, Sub Header and Body dialog with Section A entered as the header name and description The user can make multiple subheaders as well and use the Drag and Drop feature to place it in the location of choice.

  1. Header, Thank You & CSS

This is the main header section, for customization of the survey form. Test Survey's Header, Thank You & CSS tab selected from the tab bar This is where the user gives the overall header and the Thank You text. This is what the user types in the below screen. Header, Thank You & CSS tab showing organization name and Thank You text fields with an Upload Files option The user can also use the above screen for uploading a logo for their organization here - by clicking on Upload Files and selecting the corresponding picture, as shown in the below figure. Windows file picker open for selecting a logo image to upload to the survey header

  1. Share Tab

The form logo that was uploaded in the previous step is what is displayed as in the Share tab as shown in the below screenshot. Share My Survey tab with Chatter sharing option, Open Survey button, and the uploaded logo image below The form that we have already created can be opened in a new Windows tab on clicking on the Open Survey in the New Window. When the form opens in the new section then the user can submit the survey answer from that page.

  1. Results Tab

This is useful when the user needs to review the survey form that is created.  Moreover. We can also create a new survey based on an account.

  1. Create a New Survey based on an Object in Salesforce

The user clicks on the Accounts object tab and then clicks on Make a New Survey and add questions to the survey as we have already explained before. The account name is displayed in the lower part of the form as explained in the below screenshot. Survey form with a question, Submit Survey button, and the account name field highlighted at the bottom Salesforce Account record page with New Survey and Send Email action buttons above the account details The user can see the form in the email by choosing the option Email Link with Account merge option. The email displays the link of the form. Test Account Survey Share tab with Sharing Options set to Email Link w/ Account Merge The user navigates to any of the account records and selects a survey account and enters the email address. Survey (Account) dialog listing available surveys with a checkbox selected and an email address field The user can similarly create a form for an opportunity. The name of the opportunity is displayed in the lower left corner. Summary This Survey Force app is created to generate surveys with different types of questions. The user creates single, multiple-choice questions as well as star ratings type of questions. The app can group various questions with group headers as well as main header for the form itself. It is also possible to create such surveys for various objects such as accounts, cases, opportunities and contacts, The user can receive the survey forms too - through their email.