cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ahhollan
Helper V
Helper V

Dropdown on edit form not showing text from detail screen

I have an app where there is a text field on the detailscreen.  I want it to be a dropdown on the editform. However, I can't get the dropdown to default to the content of the text field on the detailscreen. 

5 REPLIES 5
poweractivate
Community Champion
Community Champion

@ahhollan 

 

Did you try Default property of the Dropdown, and simply setting this property to TextField.Text?

 

Spoiler
yes. No error, but it's still blank. I have the items property set to LookUp('Alarm locations',Building=DataCardValue4.Text, Facility)

however, i get an error that says expected table value.

@ahhollan 

 

LookUp('Alarm locations',Building=DataCardValue4.Text, Facility)

 

LookUp returns a Record, when Items expects Table. 

 

Try this instead to quickly check it and see if this version works:

 

Table( LookUp('Alarm locations',Building=DataCardValue4.Text, Facility) )

 

It doesn't work. Error message is 'Cannot use a non record value in this context.'

v-siky-msft
Community Support
Community Support

@ahhollan 

 

If you want the dropdown to replace the Text box and only has one option which is the default text.

please try to set Items property of dropdown control as below:

 

[ThisItem.Facility]

 

Except that, you need to modify the Update property of data card: Dropdown1.Selected.Value, and Y property of ErrorMessage: Dropdown1.Y + Dropdown1.Height

Snipaste_2020-01-17_10-07-58.png

Sik

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,579)