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 / Force dropdown selecti...
Power Apps
Unanswered

Force dropdown selection based on another

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello all, 

 

Been hitting this app kind of hard lately - ran into another issue and its quite possibly my logic here. Want the App dropdown "B211INBOUND" to check if there is already a value on the B211 "Spot" and if there is - force the B211OUTBOUND to auto-populate that for the user so they cant 'accidentally' spot two railcars at the same time in my app. Added some screenshots to help understand. Hoping maybe my logic below is just .. off

 

johnc222_0-1617823456208.png

 

 

If(!IsBlank(LookUp('374 Staged', Status.Value = "FULL" )),
 Switch(
 B211OUTBOUND.Selected.Railcar, LookUp('374 Staged', Track = "B211", Railcar),
 B211OUTBOUND.Selected.Railcar = Railcar
 ),
 //Patch('374 MECL',
 //LookUp('374 MECL', Railcar = B211INBOUND.Selected.Railcar),
 //{Spot: {Value: "B211-1"}}
 //),
 !IsBlank(B211INBOUND.Selected.Railcar),
 Patch('374 Staged',
 LookUp('374 Staged', Track = "B211-1"),
 {Railcar:B211INBOUND.Selected.Railcar,
 Status:{Value:"FULL"}}
 );
 Patch('374 MECL',
 LookUp('374 MECL', Railcar = B211INBOUND.Selected.Railcar),
 {Spot: {Value: "B211-1"}}
 )
);

 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    You will need to set this in the Default property (Dropdown) or the DefaultSelectedItems property (combobox).

    I don't recall if you mentioned before the Items property of that control, but it would be based on that and the Record you are editing.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Tried to add the following - but i am getting an error for Default - previously it was just ""

     

    Filter('374 Staged', Track = "B211-1", Railcar)

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard