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 / Filter columns by user...
Power Apps
Answered

Filter columns by user input canvas form

(0) ShareShare
ReportReport
Posted on by 16

hi,

is it possible to have a number columns where the user puts in a number and based on the number, that how many next questions show up?

e.g

question is "how many workshops" and use puts in "4" for example.

then there are 4 sets of questions. first set is "Workshop 1 Objective", "Workshop 1 Date",

then "Workshop 2 Objective", "Workshop 2 Date" etc until workshop 4.

is this possible using canavs form via a SharePoint list?

 

thank you

Categories:
I have the same question (0)
  • Sickle-Cell Profile Picture
    600 Super User 2024 Season 1 on at

    Hi @knowlec,

     

    There are two ways that I can think you can handle this, depending on whether you have a defined upper limit of workshops. If four was the max, the easiest way would just be to set text label visible definition as false unless the number contained within the dropdown is =>1,=>2, etc.

    If you don't, then you could instead have a series of text inputs (workshop name, objective, date) and a button. Underneath the button you can have a gallery, and on button click you can submit the workshop details into a gallery which you can then view the details in. 

     

    If either of these sound suitable and you need more information, let me know.

  • knowlec Profile Picture
    16 on at

    hi @Sickle-Cell 

    thanks for that.

    the max amount of workshops would be 10.

     

    so would I be able to limit the number in my "How many workshops" column so that it wont accept it if they user puts in a number >10?

    so then all I do is create 10 sets of workshop questions and only make visible if workshop number  =>1,=>2, etc ?

     

  • Verified answer
    Sickle-Cell Profile Picture
    600 Super User 2024 Season 1 on at

    Hi @knowlec,

     

    Yes, that's entirely possible. If I were you, i'd maybe still use the gallery solution using a button as I believe it would be better from a visual perspective, but ultimately that depends on your layout. So you'd be looking to create 10 workshop input sections, and then you can have them only display based on the number selected.

    If you need help with the specific code, let me know but it would be something like If(DropdownName.Selected.Value >= 1, true, false) and just incrementing the number for each new section 

  • knowlec Profile Picture
    16 on at

    thanks @Sickle-Cell 

    how would the expression code work for the visible workshop data cards? i tried your example but it doesn't work.

    this code does work:

    "If( "2" in Dropdown1.Selected.Value, true, false)"

    but that would mean i would need to put in a bunch of or expressions in each data card. 

     

    is there a more efficient code to get this done?

  • knowlec Profile Picture
    16 on at

    the issue was the valeus were coming in via text so they needed to be changed by entering in ClearCollect(
    NumericChoices,
    [
    {TextValue: "1", NumericValue: 1},
    {TextValue: "2", NumericValue: 2},
    {TextValue: "3", NumericValue: 3},
    {TextValue: "4", NumericValue: 4},
    {TextValue: "5", NumericValue: 5},
    {TextValue: "6", NumericValue: 6},
    {TextValue: "7", NumericValue: 7},
    {TextValue: "8", NumericValue: 8},
    {TextValue: "9", NumericValue: 9},
    {TextValue: "10", NumericValue: 10}
    ]
    ) onstart and referencing this in the visible code

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard