Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Combo Box Default Value Not Processing

Like (0) ShareShare
ReportReport
Posted on 12 Feb 2022 02:54:51 by 59

Hello friends,

 

I'm working on an app as a workflow solution for my colleagues. Within this app, I am using a very strange method to "save" each user's choice as a default value that the app checks for during OnStart. Here is that method:

 

When a user selects a value for a combo box and clicks a button to send their choice, a list item is created in a SharePoint list containing 2 values: User().FullName & Combobox.Selected.Value. Next time the app starts up, OnStart sets a variable to the Combobox.Selected.Value associated with the current User().FullName. The combo box's default value is set to that variable defined within OnStart.

 

A value is required in Combobox in order to send the user's inputs. Herein lies the problem: When I try to send user's inputs (with the Combobox.Selected.Value default value) however the app is not reading the default value so I get an error when I try to send. Unselecting the Combobox.Selected.Value and selecting it again does fix this, however as I'm sure you know defeats the purpose of saving a user's input preferences.

 

My question would be: Why is my app not identifying that there is a default value selected in the Combobox? I can literally see that the value is selected and I will still receive an error.

 

Thanks for any help you can provide and have a great day!

  • Kongol Profile Picture
    59 on 16 Feb 2022 at 02:19:44
    Re: Combo Box Default Value Not Processing

    Excellent, to the point reply! You're awesome, this solved my problem!

  • Verified answer
    cwebb365 Profile Picture
    3,294 Most Valuable Professional on 12 Feb 2022 at 03:40:41
    Re: Combo Box Default Value Not Processing

    use a lookup for you're default value. If you're items property is something like DataList.column or a filter(datalist,something = something).column then just use the same thing on default item but use a lookup. So Lookup(datalist,column = your onstart variable value).column this should match the object exactly and should produce the desired results. 

     

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,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard
Loading started