I have a scenario in which I have a a bunch of questions stored in a collection and I am displaying each individual question in a single row of a gallery. Depending on what the question is the gallery row will display different controls; ex: If it's a date question, display a date picker, if a Yes/No, display a radio button and if text, display text input, etc. And some questions have dependent questions, currently I am calling the questions who have dependent questions "Parent Dependent" Questions and then the actual dependent questions are called "Child Dependent" Questions. I want to be able to display the child dependent question depending on the user's answer, but I want to only show that specific parent dependent question's child dependent question and only that child dependent question. Problem is I can't figure out a way to do it without displaying all child dependent questions if one of them shows.
Currently my list has the columns,: Question, ID, Parent Dependent: (Shows the parent Question ID), Child Dependent: (Shows the child Question ID) and Type
ex: ID - 7, Question: Will this require more information?, Parent Dependent: (BLANK), Child Dependent: 14, Type: Yes/No
ID - 14, Question: Please type all information needed:, Parent Dependent: 7, Child Dependent: (BLANK), Type: Text
So basically I have to find a way to filter my gallery to only show no dependent questions by default and then as the user enters their answers, if a parent question's dependent condition check is true (ex: if a user selects "Yes" on a radio button control) then show that parent question's child question.
Note: Also want to emphasize this is not a flexible height gallery because the date picker I need to use is the datepicker control for powerapps for teams and this control does not work with flexible height galleries.