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 / Converting input text ...
Power Apps
Answered

Converting input text to a number and comparing it to a number, and returning default text based upon result

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am attempting to use an If statement inside the "Default" property of a Data Card Value (DataCardValue23) and assign the default property (the displayed text in DataCardValue23) based upon the result of the condition. In this case, the condition is whether an input text (DataCardValue19) is less than or equal to (<=) a number (6.2), if this case is true, we should return "Unavailable" to the Default property of DataCardValue 23. Here is my current formula in the Default property of DataCardValue23:

 

If(

Value(DataCardValue19.Text) <= 6.2, "Unavailable"

)

 

Note: DataCardValue19 is located inside a DataCard (Left_DataCard) which is contained in a Form (Form3). I have not submitted the form, as I want the text to populate DataCardValue23 before I submit (when a user enters a number <= 6.2 in DataCardValue19).

 

Where am I going wrong? Thanks!

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,570 Most Valuable Professional on at

    Hi @Anonymous ,

    That should work (see below) - I have added a test for blank as well

    WarrenBelz_0-1654390931771.png

    DefaultMsg.gif

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    This worked! Thank you.

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 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard