Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Pega Survey answer does not persist if Yes or No answer changed

SA-14419

Summary



Pega Survey information does not persist when the application user changes answers to a Yes or No question that conditionally displays subsequent questions related to the parent question. Using a When rule in an activity, the application developer has configured a screen flow to display a Pega Survey question that displays the Yes and No radio buttons for user selection, for example, "Do you have a Social Security Number?".

If the application user clicks Yes to answer this question, no additional information related to that question is required. But if the application user clicks No, additional information fields are displayed for the user to complete, namely, Country Name, Foreign ID Type, and Foreign ID. 

When the application user completes that page of the survey and clicks Next, the survey question values are stored on the clipboard. The user can see these values in the Clipboard tool, including Country Name, Foreign ID Type, and Foreign ID. 

If the user now clicks the survey form Back button to return to the survey page containing the question "Do you have a Social 
Security Number?", the user sees the question with the No radio button selected and the additional field values for Country Name, Foreign ID Type, and Foreign ID. 

Now, if the user changes the answer to the question "Do you have a Social Security Number?" to Yes, the additional fields for 
Country Name, Foreign ID Type, and Foreign ID are hidden, as expected because this is the logic specified for the When rule. 
But when the user clicks No again to the Social Security question, the information previously entered for the additional 
fields is not displayed. The Country Name, Foreign ID Type, and Foreign ID fields are blank, and the Clipboard tool does not 
show this information, either. The application user expects the previously entered information for the No answer to persist, but it does not persist.

 

Error Messages



Not Applicable


Steps to Reproduce



See the Summary.


Root Cause


The reported behavior is expected behavior for Pega Survey.
The behavior described in the Summary is correct.

Resolution


Here’s the explanation for the reported behavior: 

Previously entered information for a survey question answer that the user has changed is not saved on refresh of the survey form, for example, when the user navigates back to a previous page of the survey form.

​If the system were to retain the answered information when the question is hidden, then unwanted data would be present on the 
clipboard. This unwanted data could go into the database when a Submit or Commit is performed. This would be incorrect. Therefore, data (answers) for hidden questions is cleared from the clipboard when a refresh occurs.
Suggest Edit

Published September 29, 2015 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us