Support Article
Issues in Pega Survey
SA-10033
Summary
Work-.SurveySection & Work-.DisplaySurvey sections do not accept parameters.
Dynamic questions are not refreshed correctly (forward chaining).
If you answer any of the dynamic questions from the survey, it replaces the current survey with all other surveys displayed on screen.
Error Messages
Not Applicable
Steps to Reproduce
1. Have three survey sections included in a main section, where three different surveys were displayed.
2. Have refresh configured in the questions of the third survey.
3. Observe that during runtime when refresh occurs, it looses the first survey content and replaces with the third survey.
Root Cause
There are three survey sections included in a main section, where three different surveys are displayed.
The survey section includes surveyscripts, where the section to be refreshed is hardcoded as Surveysection. And thus when the refresh occurs, as multiple section with same name and ID exists, javascript gets confused and thus results in incorrect behavior.
And also as survey section is included thrice, the script is also included thrice.
Resolution
This issue is resolved through the following Local-change:
Customize surveyscripts to use parameterized value for refreshing.
Also customize survey section to not include survey scripts. In main section include survey scripts once (customized one) and pass section name to be refreshed as main section.
Also include as many surveysections (customized one without scripts) as per the requirement.
Published June 25, 2015 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.