When configuring a QuestionPage rule, if the custom section option is used to capture the response for a question, the answer/response provided by the user is not getting mapped to the respective question in the page group created by Pega under pyWorkPage. 'pyQuestionGroup(XYZ)' is the page group which contains all the questions from the QuestionPage rule configured for a case. For all the questions in this page group, the response is showing up in the 'pyAnswer' property except for the question which has a custom section.
How do we ensure that the pyAnswer property is populated even for custom sections in QuestionPage rule?
***Edited by Moderator: Bhavana S to add Product name and capability tags***
@BrijeshV To ensure that the pyAnswer property is populated for custom sections in a QuestionPage rule, you need to make sure that the custom section is properly configured to capture the user's response and map it to the respective question's pyAnswer property. In the custom section, use a control or an input field that is bound to the pyAnswer property of the corresponding question in the pyQuestionGroup page group.
This way, when the user provides a response, it will be stored in the pyAnswer property of the respective question within the pyQuestionGroup page group on pyWorkPage.
This answer came from a Pega gen-AI assistant using the below references. As a Support Center moderator, I reviewed the answer and references for accuracy: