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 / Reset Dropdown in gall...
Power Apps
Answered

Reset Dropdown in galleryy

(0) ShareShare
ReportReport
Posted on by 457

 have 3 drop down in gallery. there drop down has same value name1 and name2 and name3. I should not allow user select same value these dropdown. so i user Reset property but problem is I have 5 item in gallery. if I reset 1 item 2 nd dropdown at the time all 5 items second drop down also reset how to avoid this. I want to achieve only reset 1st item 2 nd dropdown. please help me.

@Mike8 @WarrenBelz @RandyHayes @Pstork1 

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Gelos ,

     

    I did a simple demo for you.

    1\ This is my gallery 'Gallery1' .

    vxiaochenmsft_0-1627957940003.png

    vxiaochenmsft_1-1627957954505.png

     

    vxiaochenmsft_2-1627957971853.png

     

    2\ Insert a dropdown control 'Dropdown1' into the gallery .

    Set the dropdown control 's AllowEmptySelection property to:

    true

     

    Set the dropdown control 's onchange property to:

    ClearCollect(Col,ForAll(ShowColumns(Gallery1.AllItems,"Dropdown1"),Dropdown1.Selected.Value));If(CountRows(Filter(Col,Value=Dropdown1.Selected.Value,!IsBlank(Value)))>1,Reset(Dropdown1))

     

    3\ The result is as follows:

    AAA.gif

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

  • Gelos Profile Picture
    457 on at

    Thankyou for your replay. but the three dropdowns must be all row rows.

    1 st row has three dropdown,

    2 nd row has three dorpsown,....................................n row

    like that

      

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Gelos ,

     

    I don't quite understand your needs...

    Could you explain it?

     

    Best Regards,

    Wearsky

  • Gelos Profile Picture
    457 on at

    In gallery I have five rows I set each row has three dorpdown.

    1  dd1, dd2,dd3 

    2  dd1,dd2,dd3

    3 dd1,dd2,dd3

    like that. If user choose name1 in dd1 the user should not choose name1 in dd2 and dd3 in first row the same condition applied remining rows . I show the the names from cds table. 

    thankyou

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Gelos ,

     

    I did a simple demo for you.

    1\ Add a dropdown control 'Dropdown1' and set its Items property to:

    'Test 101S'.Name

    vxiaochenmsft_0-1628242804411.png

     

    2\ Add a dropdown control 'Dropdown2' and set its Items property to:

    Filter('Test 101S'.Name,Dropdown1.Selected.Name <>Name)

     

    3\ Add a dropdown control 'Dropdown3' and set its Items property to:

    Filter('Test 101S'.Name,Dropdown1.Selected.Name <>Name&&Dropdown2.Selected.Name<>Name)

     

    4\ The result is as follows:

    vxiaochenmsft_1-1628242870698.png

    vxiaochenmsft_2-1628242878350.png

    vxiaochenmsft_3-1628242887134.png

     

    This solution can only select values from the dropdown control from left to right.

     

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

     

     

     

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 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard