Question
Sopra Steria
Sopra Steria
FR
Sopra Steria
Posted: Apr 15, 2025
Last activity: 4 days 20 hours ago
Last activity: 18 Feb 2026 10:12 EST
Solved
Sort questions on Case Data answered on Question Page
Hello,
so we've created a new case that uses Question page for multiple simple questions and stored on a data page, and I want the ordennance of the questions to appear in the order the user answered on the case data (we're using a repeating dynamic layout on the pyQuestionGroup) and a pdf that we're creating after the end of the process.
Coridally,
@KHALIDHICHAMS16789001 To display the questions in the same order the user answered them, you need to capture the sequence in which each question was answered. One way to do this is by adding a timestamp or a sequence number to each question as it's answered, and then sorting the list based on that value before displaying it or generating the PDF. You can do this by modifying the data transform or activity that populates the repeating dynamic layout and the PDF to sort the
pyQuestionGrouppage list by that timestamp or sequence property. This ensures the questions appear in the same order the user interacted with them. Make sure to include this sorting logic both in the UI (repeating layout) and when generating the PDF.