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 / Combobox default value...
Power Apps
Answered

Combobox default value being numerical

(1) ShareShare
ReportReport
Posted on by 22
Hi everyone,

I need some help regarding the default value of combobox being numerical instead of text.
The combobox is connected to a global choice with ["Applicable", "Not Applicable"] as the items and "Not Applicable" as the default option.
 
If(Text(DataCardValue142.Selected.Value) = "Applicable", DisplayMode.Edit, DisplayMode.View)

The idea is I am trying to make follow up assessment fields become disabled for input if the first assessment is not applicable to the user.
However, the formula becomes an error (as shown below) because the default value becomes numerical.

Incorrect argument type, expected a number.

Is there a way to make combobox  default selected item to display text value, instead of numerical value?



This method does not work for me:
Solved: Combobox : numbers instead of text


Edit: I tried updating the combobox to newer version and the default selected items became empty. Tried leaving it empty while submission and the Dataverse table does not register the default value.


 
Categories:
I have the same question (0)
  • Suggested answer
    Kalathiya Profile Picture
    1,998 Super User 2026 Season 1 on at
     
    Could you please try removing and re-adding the ItemDisplayText property/formula once? Sometimes there can be a caching issue in the ComboBox, which may cause it to show the wrong value.
     
     
     
    Please remove "ThiItem.Value" and re-write and check again?
     
    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
    ---------------------------------------------------------------------------------

    📩 Need more help? Just mention @Kalathiya and I’ll be happy to assist.

    ✔️ If this answer helped you, please tick “Does this answer your question?” so it can be marked as the Verified Answer.

    💛 A Like always motivates me to keep contributing!

    ​​​​​​​
     
  • CU05050852-0 Profile Picture
    22 on at
    Hi @Kalathiya

    Thank you for the response. 

    I have tried what you have suggested, but unfortunately it still remains the same.

    I even left the field empty and refresh the Power Apps again, but still the same.

    This is the choice column settings if it helps.

  • Verified answer
    timl Profile Picture
    36,965 Super User 2026 Season 1 on at
     
    Rather than using a condition that converts the selected to text and compares the selected text to "Applicable", you could just compare the value against your global choice enumeration. 
     
    The syntax would look like this:
     
    If(DataCardValue142.Selected.Value = YourGlobalChoice.Applicable,
        DisplayMode.Edit, 
        DisplayMode.View
    )
     
    Here's a quick test I did to illustrate how it would look.
     
  • Verified answer
    Valantis Profile Picture
    5,197 on at
     
    timl's approach is the correct fix. The issue is that comparing against a text string with Text() breaks when the underlying value is numeric, which is how Dataverse global choices work internally.

    Instead of converting to text and comparing, compare directly against the choice enumeration:

    If(DataCardValue142.Selected.Value = YourGlobalChoice.Applicable, DisplayMode.Edit, DisplayMode.View)

    Replace YourGlobalChoice with the actual logical name of your global choice option set. This bypasses the numeric vs text issue entirely since you're comparing choice values directly.
     

     

    Best regards,

    Valantis

     

    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/

    💼 LinkedIn

    ▶️ YouTube

  • Verified answer
    Kalathiya Profile Picture
    1,998 Super User 2026 Season 1 on at
     
    Yes, you can try to update the Display mode as you are might be comparing Choice option set value with String so instead of string we need to compare with Option Set value in display mode. Could you please try this?
     
    For example
    If(DataCardValue142.Selected.Value = 'Category Assessment Applicability'.Applicable, DisplayMode.Edit,DisplayMode.Disabled)
    Note: Please update the option set as per your set up if it's wrong. 
     
    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
     
     
  • CU05050852-0 Profile Picture
    22 on at
    @timl @Valantis @Kalathiya

    It works great! 

    Thanks a lot for the help.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,074

#2
Valantis Profile Picture

Valantis 639

#3
11manish Profile Picture

11manish 606

Last 30 days Overall leaderboard