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

Community site session details

Session Id : /bYrXGlZ22ZTcaB36SPd02
Power Apps - Building Power Apps
Answered

Reset Dropdown in galleryy

Like (0) ShareShare
ReportReport
Posted on 2 Aug 2021 11:46:43 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 

I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on 06 Aug 2021 at 09:42:44
    Re: Reset Dropdown in galleryy

    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.

     

     

     

  • Gelos Profile Picture
    457 on 06 Aug 2021 at 08:14:00
    Re: Reset Dropdown in galleryy

    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

  • v-xiaochen-msft Profile Picture
    on 06 Aug 2021 at 07:54:10
    Re: Reset Dropdown in galleryy

    Hi @Gelos ,

     

    I don't quite understand your needs...

    Could you explain it?

     

    Best Regards,

    Wearsky

  • Gelos Profile Picture
    457 on 06 Aug 2021 at 07:50:12
    Re: Reset Dropdown in galleryy

    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

      

  • Verified answer
    v-xiaochen-msft Profile Picture
    on 03 Aug 2021 at 02:36:54
    Re: Reset Dropdown in galleryy

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 982 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 396 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 356

Last 30 days Overall leaderboard
Loading started
Loading complete