Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 0BW8t1c+wwNpkObjmA7Wzd
Power Apps - Building Power Apps
Answered

Combo box to show item in ViewForm

Like (0) ShareShare
ReportReport
Posted on 9 Apr 2024 06:43:01 by 123

I'm having a bit of trouble with one part of my Power App. I'm using a ComboBox (dropdown list) to get information from a SharePoint list. It's supposed to look at one specific column and then give me a list of options based on that. Everything works great when I'm just looking at the dropdown list.
The formula in the combobox are attached as follows:

OnChange
Set(RecordVariable, LookUp(Sort('Table', 'Year', SortOrder.Descending), 'Name' = If(IsBlank(ComboBox1.Selected.Value), ComboBox1.SearchText, ComboBox1.Selected.Value)))

Items
Distinct('Table'.'Name','Name')

DisplayFields
["Value"]

SearchFields
["Value"]

But when I try to look at the same information in the view form, there's a problem - none of the information shows up. I'm not sure why this is happening or how to fix it.

Has anyone else had this problem? Does anyone know how to fix it? I'm stuck and would really appreciate any help you can give.

Categories:
  • Verified answer
    v-bofeng-msft Profile Picture
    on 09 Apr 2024 at 07:00:56
    Re: Combo box to show item in ViewForm

    Hi @Appleonwindows ,

     

    Could you please show me the value of the Parent.Default ?

    If ‘Name’ is a text type column , you could set the combo box's DefaultSelectedItems property to:

    [{Value:ThisItem.Name}]

     

    Best Regards,

    Bof

  • Appleonwindows Profile Picture
    123 on 09 Apr 2024 at 06:48:20
    Re: Combo box to show item in ViewForm

    No, its empty inside.

    I inputted Parent.Default, it told me it expected table value

  • v-bofeng-msft Profile Picture
    on 09 Apr 2024 at 06:46:32
    Re: Combo box to show item in ViewForm

    Hi @Appleonwindows ,

     

    Did you set the combo box's DefaultSelectedItems property?

     

    Best Regards,

    Bof

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,083 Most Valuable Professional

Leaderboard
Loading started