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 Apps
Answered

Percentage Sign

(0) ShareShare
ReportReport
Posted on by 260

Hi all!!

 

I have a form in my power app and that returns a %. The code for the Text Input is 

OnChange:

Set(varPercentage1,Value(dAllocation1.Text)*1&"%")
 
Default:
varPercentage1
 
When a number is entered in this Text Input (lets call it TextInput1) it triggers a Visible action for another DataCard (DataCard2) to return true and when the number is removed from TextInput1, DataCard2 is supposed to trigger Visible to false.
 
This works, however, when I clear the number from TextInput1 it returns 0% meaning DataCard2 won't disappear like it should do because essentially it has text in it.
 
How do I stop this from happening? I only want Textnput1 to show a % when a number is entered, and when the number is removed, to only show blank. 
 
The Visible formula of DataCard2 is
If(IsBlank(TextInput1.Text),false,true)
Categories:
  • Verified answer
    SebS Profile Picture
    4,882 Super User 2026 Season 2 on at

    @carrie-anne27 

     

    You can try:

     

    If(IsBlank(TextInput1.Text) || TextInput1.Text = "0%" ,false,true)
    

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 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard