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 / Setting Default of Com...
Power Apps
Answered

Setting Default of Combo box avoiding Scope Error

(0) ShareShare
ReportReport
Posted on by 230

Hi - I am having an issue setting the default value of my combo box. The error I continue to get is that my formula uses scope. 

 

Here is the structure of my app:

 

- Data stored in a Sharepoint list as a text value

- Combo box selection values are manually created list of "items" 

 

Any insights or tips here?

 

Thanks

Screen Shot 2020-05-22 at 10.07.01 PM.png
Categories:
  • eka24 Profile Picture
    20,925 on at

    Is the combobox inside a Gallery?

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • tlevine Profile Picture
    230 on at

    Yes, it is inside the gallery 

  • eka24 Profile Picture
    20,925 on at

    Please clear that formula. ThisItem should rather be in the labels inside the Gallery.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • tlevine Profile Picture
    230 on at

    HI - can you help to clarify please? I am putting thisitem.'Supply Response' as the Default for my combo box and that is where the error occurs. 

     

    Where should I put this?

  • eka24 Profile Picture
    20,925 on at

    I suggested that remove thisitem.'Supply Response'. The Default should be one of the choice items. Can you show the combobox Items?. When you click on the combobox what choices do you have, put one there.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @tlevine ,

     

    There are two mistakes.

    1. you need to configure the DefaultSelectedItems instead of Default property if you want to set the default value of combobox.

    2. the default value of combo box should be a record, instead of a text value. I just found the your combobox items property is manually created. If you didn't define any column names, the DefaultSelectedItems should be: {Value:ThisItem.'Supply Response'}

    Snipaste_2020-05-25_10-59-40.png

     

    In addition, ' my formula uses scope.' is not a error message, it just a statement since ThisItem represents the current row record in the gallery, it is not a constant, so it doesn't support for evaluation and preview.

    The real error message is shown above the code above the red wave line, when the mouse hover over it.

    Snipaste_2020-05-25_11-05-06.png

    Hope this helps.

    Sik

  • tlevine Profile Picture
    230 on at

    hi - thanks for the help so far @v-siky-msft @eka24 

     

    I have marked the solution to this thread 🙂

     

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard