Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Up Program - Build A Canvas App
Suggested answer

Problem with default option in choice fields

(1) ShareShare
ReportReport
Posted on by 121
I've started to build a canvas app based on my model driven app. Two of my columns are choice columns with defaults and they're having issues in the canvas app, if I take the default off they work as they should. This is what I'm seeing in the canvas app... the defaults are showing as their applicable value (numbers) on the choice column, rather than the label name. Any idea how to sort this please? Any guidance is very much appreciated. 
 
Categories:
  • CD-28031715-0 Profile Picture
    121 on at
    Problem with default option in choice fields
    @Inogic I tried to earlier and have just tried again, but it just keeps whirling. I'll try some different browsers and will try again in a day or two if I have no success. Thanks again. 
  • Suggested answer
    Inogic Profile Picture
    1,023 Super User 2025 Season 1 on at
    Problem with default option in choice fields
    @CD-28031715-0 Glad to know the solution worked for you.
     
    If you dont mind, kindly please mark the solution as accepted/verified so that if someone else face same issue as yours, they know what to do by seeing the accepted/verified solution
     
    Thanks!
    Inogic
  • CD-28031715-0 Profile Picture
    121 on at
    Problem with default option in choice fields
    @Inogic Fabulous! Thanks so much for your comprehensive reply, that sorted it! Amazing!
  • Suggested answer
    Inogic Profile Picture
    1,023 Super User 2025 Season 1 on at
    Problem with default option in choice fields
    Hi,
     
    For this, you first need to unlock the change properties for the field you want to edit by following these steps:
    1. Click on the Option Set box.
    2. In the Properties pane, navigate to the “Advanced” section.
    3. Click on “Unlock to change properties” (as shown in the screenshot below).

    After clicking that, the properties will be unlocked, and you will be able to make changes.
    Then, set the DefaultSelectedItems property of the ComboBox to:
    Choices('Optionset Field Name').Value

    For example, in our scenario, the Option Set field name is Category, so the expression looks like this as shown in below screenshot:
    Choices('Category (Accounts)').Value


    By using the above expression, you will get the Label (instead of the numeric value) displayed in the Option Set box.
     
    Hope this helps
     
    Thanks!
    Inogic
  • CD-28031715-0 Profile Picture
    121 on at
    Problem with default option in choice fields
    @bscarlavai33 I haven't a clue! I'm very new to Power Apps and particularly canvas apps, I was assuming that the choice columns would work the same way as with the model driven app. It's only the default value that displays a numerical number, the other options are as we would expect. 
  • bscarlavai33 Profile Picture
    608 Super User 2025 Season 1 on at
    Problem with default option in choice fields
    How are you setting the default value? It seems like you're using the Id and not the Value?

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

Leaderboard >

Featured topics