title: Adding Dynamic Controls
body: <p>I have a page I need to build out where depending on the selection the user made on a form on the page prior it displays a different set of questions for them to answer.</p>
  
  <p>So say the user selects Reason A from the form on page edit, then it needs to display Questions 1 and 2 on page edit_confirmation.  But if they select Reason B then it needs to display Questions 3 and 4.</p>
  
  <p>I'm grabbing the reason code from the query string and have a switch statement set up, but I can't find anywhere how to output different controls.  If Questions 1 and 2 are supposed to show up, one could be a text box and the other a checkbox, but if questions 3 and 4 are supposed to show up one may need to be a dropdown list and a checkbox.</p>
  
  <p><strong>EDIT: I'm going to try some of the below suggestions and will be back to mark the answer and upvote accordingly. Thank you all for the quick response.</strong></p>
  
  <p><strong>EDIT EDIT: Both rlb.usa and AndrewVos's answers worked equally well.  I went with Andrew's since it seemed like the more "proper" way of doing it.</strong></p>