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 / The age old "How to se...
Power Apps
Answered

The age old "How to set the default of a drop down" again!

(0) ShareShare
ReportReport
Posted on by 212

I have 2 SharePoint lists:

  1. List A with an Asset No field/column (single line of text clmn) - a list of all bookings made, and what asset no. has been assigned to the booking.
  2. List B with an Asset No field/column (single line of text clmn) - a list of all bookable items, each with a unique asset no.

I have an Edit form on a PowerApp which populates from a user selection on a gallery.

I have changed an Asset No. text field (within a datacard) on the form to a drop down:

cardinalnight_0-1712138510338.png

 

I have populated the Asset No. drop down with: 

 

 

Items: Distinct(ListB, AssetNo)

 

 

This populates the list with all Asset No.'s successfully.

 

But it does not set the Asset No. drop down with the selected asset no. from a selection in the gallery.

I kind of understand why this is happening - the two lists are separate.

 

My settings:

Gallery on item selection: 

 

 

Select(Parent)

 

 

In Edit Form:

 

 

DataSource: ListA

 

 

In DataCard:

 

 

Default: ListA.Selected.AssetNo
Update: ddAssetNo.SelectedText.Value
DataField: "AssetNo"

 

 

In Drop down:

 

 

Items: Distinct(ListB, AssetNo)
Default: Parent.Default

 

 

 

I've tried:

In Drop down:

 

 

Default: galListA.Selected.AssetNo
Default: ThisItem.AssetNo

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,752 Most Valuable Professional on at

    Hi @cardinalnight ,

    Is this a drop-down or a Combo Box ? If a Drop-down, the Default would be

    ThisItem.AssetNo

    If a Combo Box, the DefaultSelectedItems

    {Value: ThisItem.AssetNo}

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • cardinalnight Profile Picture
    212 on at

    Hi @WarrenBelz  - it's a drop down and I've set the drop down itself (not datacard) to

     Default: ThisItem.AssetNo

    and it's still not changing on selection of different gallery items.

  • cardinalnight Profile Picture
    212 on at

    Hi - I swapped out the Drop down and used a comboBox instead. I used @WarrenBelz hint and this worked.
    If working with data, don't bother with a drop down.
    Note: I had to turn off Search on the combobox for it to work completely.

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard