| This post is part of an series. Click below for Parts 1 and 2: When it comes to surveys, one question we get asked about frequently is how to allow surveys to tailor questions to users based on their responses. As SharePoint consultants we want our clients to get the most out of SharePoint. This post will take you on a deep dive into the topic of branching logic for surveys.
Hiding or Showing Questions Based on a Single Answer Condition
- Add the question that will trigger your logic to your survey.
- Add the question or questions you intend to hide or show to your survey.
- Select the Page tab on the palette.
- Select Advanced Branching Wizard.
- Click the + Add Branching Rule.
- Click Add a condition? and select the question that you want to trigger the logic.
- In the drop down that appears, select the answer condition you want to trigger the logic.
- Under Rule Actions select either hide a question or show a question.
- In the drop down that appears, select the question you would like to hide or show.
- Repeat this process in the Rule Actions section until you have added all questions you want hidden or shown.
- Click Save Rule.
Hiding or Showing Questions Based on the Answers to a Set of Questions
Use Advanced Branching to show or hide questions based on multiple answer choice conditions in previous questions. You can combine rule conditions with the Boolean operators AND or OR to create more complex conditions.
- Use the AND operator to set up logic where every condition must be met in order to show or hide the question.
- Use the OR operator to set up logic where only one of the conditions must be met in order to show or hide the question.
For example, you can choose to show parenting related questions to respondents who answered yes to a question asking if they currently have children OR if they answered yes to a question asking if they are planning to have children.
To apply Advanced Branching based on multiple conditions:
- Add the question that will trigger your logic to your survey.
- Add the question or questions you intend to hide or show to your survey.
- Select the Page tab on the palette.
- Select Advanced Branching Wizard.
- Click the + Add Branching Rule.
- Click Add a condition? and select the question that you want to trigger the logic.
- In the drop down that appears, select the answer condition you want to trigger the logic.
- Click Add Rule.
- Toggle between AND or OR by clicking on the operand that appears.
- Continue to add additional question and answer conditions until you've set up the rule condition you want.
- Under Rule Actions select either hide a question or show a question.
- In the drop down that appears, select the question you would like to hide or show.
- Repeat this process in the Rule Actions section until you have added all questions you want hidden or shown.
- Click Save Rule
We love helping with SharePoint and it's all we do so feel free to contact us!
Mention this post and we'll send you a white paper on all of the ways Outlook and SharePoint work together! As SharePoint consultants we strive to empower our clients to unlock the full potential of their SharePoint environment.
|
Action History /_layouts/15/images/Infowise/SmartActionPro/history16x16.png javascript:SP.SOD.registerSod('smartactionprosupport.js', '/_layouts/15/Infowise/SmartActionPro/smartactionprosupport.js');SP.SOD.execute('smartactionprosupport.js', 'iwsapShowActionHistory', null, '{SiteUrl}', '{ListId}', '', '{ItemId}', '15/'); 0x0 0x1 ContentType 0x01 1001 Run Actions /_layouts/15/images/Infowise/SmartActionPro/run16x16.png javascript:SP.SOD.registerSod('smartactionprosupport.js', '/_layouts/15/Infowise/SmartActionPro/smartactionprosupport.js');SP.SOD.execute('smartactionprosupport.js', 'iwsapShowExecuteActionDialog', null, '{SiteUrl}', '{ListId}', '{ItemId}', ''); 0x0 0x1 ContentType 0x01 1001 Compliance Details javascript:if (typeof CalloutManager !== 'undefined' && Boolean(CalloutManager) && Boolean(CalloutManager.closeAll)) CalloutManager.closeAll(); commonShowModalDialog('{SiteUrl}'+
'/_layouts/15/itemexpiration.aspx'
+'?ID={ItemId}&List={ListId}', 'center:1;dialogHeight:500px;dialogWidth:500px;resizable:yes;status:no;location:no;menubar:no;help:no', function GotoPageAfterClose(pageid){if(pageid == 'hold') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+
'/_layouts/15/hold.aspx'
+'?ID={ItemId}&List={ListId}'); return false;} if(pageid == 'audit') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+
'/_layouts/15/Reporting.aspx'
+'?Category=Auditing&backtype=item&ID={ItemId}&List={ListId}'); return false;} if(pageid == 'config') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+
'/_layouts/15/expirationconfig.aspx'
+'?ID={ItemId}&List={ListId}'); return false;}}, null); 0x0 0x1 ContentType 0x01 898 Document Set Version History /_layouts/15/images/versions.gif?rev=40 javascript:SP.UI.ModalDialog.ShowPopupDialog('{SiteUrl}'+
'/_layouts/15/DocSetVersions.aspx'
+ '?List={ListId}&ID={ItemId}') 0x0 0x0 ContentType 0x0120D520 330 Send To other location /_layouts/15/images/sendOtherLoc.gif?rev=40 javascript:GoToPage('{SiteUrl}' +
'/_layouts/15/docsetsend.aspx'
+ '?List={ListId}&ID={ItemId}') 0x0 0x0 ContentType 0x0120D520 350 Add Alert /_layouts/15/images/Infowise/SmartAlertPro/alert16x16.gif javascript:iwAlertOpenDialog('{SiteUrl}/_layouts/15/Infowise/Settings/Design.aspx?SPHostUrl={SiteUrl}&List={ListId}&ID={ItemId}&Mode=Alerts&Modal=1', 'Add Alert'); 0x80 0x0 ContentType 0x01 1001
Action History /_layouts/15/images/Infowise/SmartActionPro/history16x16.png javascript:SP.SOD.registerSod('smartactionprosupport.js', '/_layouts/15/Infowise/SmartActionPro/smartactionprosupport.js');SP.SOD.execute('smartactionprosupport.js', 'iwsapShowActionHistory', null, '{SiteUrl}', '{ListId}', '', '{ItemId}', '15/'); 0x0 0x1 ContentType 0x01 1001 Run Actions /_layouts/15/images/Infowise/SmartActionPro/run16x16.png javascript:SP.SOD.registerSod('smartactionprosupport.js', '/_layouts/15/Infowise/SmartActionPro/smartactionprosupport.js');SP.SOD.execute('smartactionprosupport.js', 'iwsapShowExecuteActionDialog', null, '{SiteUrl}', '{ListId}', '{ItemId}', ''); 0x0 0x1 ContentType 0x01 1001 Compliance Details javascript:if (typeof CalloutManager !== 'undefined' && Boolean(CalloutManager) && Boolean(CalloutManager.closeAll)) CalloutManager.closeAll(); commonShowModalDialog('{SiteUrl}'+
'/_layouts/15/itemexpiration.aspx'
+'?ID={ItemId}&List={ListId}', 'center:1;dialogHeight:500px;dialogWidth:500px;resizable:yes;status:no;location:no;menubar:no;help:no', function GotoPageAfterClose(pageid){if(pageid == 'hold') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+
'/_layouts/15/hold.aspx'
+'?ID={ItemId}&List={ListId}'); return false;} if(pageid == 'audit') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+
'/_layouts/15/Reporting.aspx'
+'?Category=Auditing&backtype=item&ID={ItemId}&List={ListId}'); return false;} if(pageid == 'config') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+
'/_layouts/15/expirationconfig.aspx'
+'?ID={ItemId}&List={ListId}'); return false;}}, null); 0x0 0x1 ContentType 0x01 898 Document Set Version History /_layouts/15/images/versions.gif?rev=40 javascript:SP.UI.ModalDialog.ShowPopupDialog('{SiteUrl}'+
'/_layouts/15/DocSetVersions.aspx'
+ '?List={ListId}&ID={ItemId}') 0x0 0x0 ContentType 0x0120D520 330 Send To other location /_layouts/15/images/sendOtherLoc.gif?rev=40 javascript:GoToPage('{SiteUrl}' +
'/_layouts/15/docsetsend.aspx'
+ '?List={ListId}&ID={ItemId}') 0x0 0x0 ContentType 0x0120D520 350 Add Alert /_layouts/15/images/Infowise/SmartAlertPro/alert16x16.gif javascript:iwAlertOpenDialog('{SiteUrl}/_layouts/15/Infowise/Settings/Design.aspx?SPHostUrl={SiteUrl}&List={ListId}&ID={ItemId}&Mode=Alerts&Modal=1', 'Add Alert'); 0x80 0x0 ContentType 0x01 1001
|
|
|