web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Building a powerapps d...
Power Apps
Unanswered

Building a powerapps dynamic survey

(0) ShareShare
ReportReport
Posted on by 143

I am trying to user SharePoint list as a datasource to build a dynamic questionairre. One of my fields is a multiline text field which I want to use as radio buttons for the options to the question. The text is split by ";". I have a 2nd column which mirrors the next question I would like to show the user based on the choice that they have made and here I am using this syntax "2;9" to either show question 2 or 9 based on the option they choose.

 

In the customised form, I am using a gallery to show the question and for the option I use a radio button control which uses 

 

split(Thisitem.Options,";")

 

 and this gives me the radio buttons but how do I find out which radio button was selected so that I can show the next column?

 

Ideally I want to build a temporary collection which would show something like this

Option ChoosenNext Question
Option 12
Option 39

 

Any ideas would be welcome

Categories:
  • RezaDorrani Profile Picture
    12,145 on at

    Hi @Dhiran 

     

    Check Power Apps Dynamic Form Schema | Add Controls on the fly - YouTube

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

    Thanks,
    Reza Dorrani, MVP
    YouTube
    Twitter

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Dhiran 

    The radio control will have the two values in it.  Which is selected will be on the Radio controls Selected property.  In your case if that Split function is the Items property, then yourRadioControl.Selected.Result will contain the selected value.

    What problem do you have beyond that?

     

    I hope this is helpful for you.

  • Dhiran Profile Picture
    143 on at

    Hi @RezaDorrani Thanks for the link. The video does cover the creation but I need to figure out how I can do this with Radio buttons. In the video the choice column does indeed use the split command but for the radio buttons I need to get the "next" question value. 

  • Dhiran Profile Picture
    143 on at

    Hi @RandyHayes You are correct in saying that the result will provide me the value selected but that doesnt really help me navigate to the next question. the radio buttons to be created from the SharePoint list using both columns, Options chosen and Next Question 

     

    ClearCollect(colTest,{Option:"Option 1",NextQuestion:2},{Option:"Option 2",NextQuestion:9})

     

     

    The when the radio button one is chosen, I can get the Next Question value as 2

     

    I hope that makes sense?

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Dhiran 

    Not much need for a collection for what you have, but that is a side subject.

    Your question is how to navigate...how do you want to navigate?  How are you navigating now?

  • Dhiran Profile Picture
    143 on at

    HI,

     

    I managed to work around this issue on how to use collection for my questions. I created a SP list with the following columns 

     

    QuestionIDQuestionOptionNextQuestion
    1What is your favourite colourRed2
    1What is your favourite colourGreen3
    2What shade of Red do you likeDark Red4
    2What shade of Red do you like Light Red5

     

    Once I had this then I would use the collection to get the first record and only show this record in a gallery and when the user chooses one of the radio options, then I had access to "ThisItem.NextQuestion" which I could use to collect on the QuestionID=ThisItem.NextQuestion. 

     

    I hope this makes sense? The bottom line is that it worked for me and what I needed to achieve 🙂

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard