PowerApps Dynamic Form: Customizing Answer Controls for Your Questions
This article focuses on creating a dynamic form that displays a set of questions along with corresponding answer controls. The questions in this form can be periodically updated by an Admin, and the form will automatically adjust to display the current set of questions.
To achieve this, I utilized the Gallery control in PowerApps, with the data sourced from a SharePoint list containing the questions. Each item in the Gallery control consists of two elements: a Label and a Radio button. The Label displays the question, while the Radio button presents the answer choices. This setup allows for a dynamic Question and Answer form where the questions are directly pulled from the SharePoint list.
For a detailed tutorial on how this is implemented, refer to the following link: PowerApps Question & Answer Dynamic Form Part - 1
A common question that arises is how to incorporate different types of answer controls, instead of limiting all questions to Radio button choices. For example, some questions might require a Textfield, Datepicker, or Dropdown. This can be easily managed by adding a new column to the SharePoint list for each question, named 'Control Type'. This column will indicate which type of control should be used for each specific question.
For a step-by-step guide on this advanced scenario, check out the tutorial link below: PowerApps Question & Answer Dynamic Form Part - 2