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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to Disable previou...
Power Apps
Unanswered

How to Disable previously selected value in Dropdown

(0) ShareShare
ReportReport
Posted on by 248

Hi Everyone Can some please help me in this problem? I am submitting data through form in the share point list. in the new Form there is dropdown field that contains 1,2,3,4,5,6 (e.g.). while submitting the data first time user can select any value (depending upon project phase) and submit.

when next time when user select the project and edit the submitted project details then user can only select the next phase value. e.g. ( if previously already selected 1 then 2,3,4,5,6 should be disable/visible in the dropdown. if previously already selected 2 then 3,4,5,6 should be disable/visible in dropdown) 

I am not sure if there any way to do this.    

Categories:
I have the same question (0)
  • v-mengmli-msft Profile Picture
    on at

    Hi @aayaanmayank ,

     

    Your requirements are actually taking Items of dropdown as dynamic. But the dropdown's selection needs to be from its Items. There is a logical error in this. I don't recommend that you do this, I would rather recommend that you reset the dropdown and set a reminder when the user selects an option that has already been chosen.

     

    Please try this.

    OnVisible of Screen.

    ClearCollect(COL,AddColumns([1,2,3],"test",true))

    OnChange of DropDown.

    If(Self.Selected.Value in Filter(COL,test=false,Value),Reset(Self)&&Notify("Please select another choice"),Patch(COL,LookUp(COL,Value=Self.Selected.Value),{test:false}))

     

     

    Best regards,

    Rimmon

  • aayaanmayank Profile Picture
    248 on at

    I am getting error on Value 

    aayaanmayank_0-1710334256491.png

     

  • v-mengmli-msft Profile Picture
    on at

    Hi @aayaanmayank ,

     

    I just modified my reply, please refer to the newest.

     

     

    Best regards,

    Rimmon

  • aayaanmayank Profile Picture
    248 on at

    Thanks @v-mengmli-msft however getting that invalid schema. Just a thought- If i store the last submitted value in separate sharepoint list column and when form is in edit mode then based on the last submitted value it should disable the previous values   

    aayaanmayank_0-1710337654516.png

     

  • v-mengmli-msft Profile Picture
    on at

    Hi @aayaanmayank ,

     

    If you save each selection in the SP list, the method is even simpler. For example, if option 1 is saved in an item with ID 1, option 1 can be disabled the next time you edit it.

    Items of dropdown.

    Filter(["1","2","3","4"], Value<>LookUp(List,ID=1,DropdownSelection))

     

    ______________________________________________________________________________________________________________________

    If my answer helps you solve the problem, please accept it as a solution.

     

    Best regards,

    Rimmon

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard