Skip to main content
Community site session details
Power Apps - Building Power Apps
Answered

How to display a percentage in a form field?

Like (0) ShareShare
ReportReport
Posted on 22 Dec 2020 16:41:49 by 2,278

My form is connected to a Sharepoint list.

 

One of the fields is a number, I want to display it as a percentage (it is a tax rate).

 

The DataCard Format property is set to:

 

TextFormat.Number

 

There isn't an option to display this as percentage.

 

So, a tax rate of 0.23 just looks terrible on the form.

 

How can I display it like 23%?

 

Thanks

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on 30 Dec 2020 at 09:40:16
    Re: How to display a percentage in a form field?

    Hi@WebPortal,

    Have you solved your problem?

    Based on the issue that you mentioned, do you want to format the TextInput control when you typing within?

    Could you please share a bit more about the scenario?

    I have a test on my side, please take a try as below.

    Set the OnChange property of the TextInput as follows:

     

    Set(var3,Value(DataCardValue8.Text)*100&"%")

     

    Set the Default property of the TextInput as follows:

     

    var3

     

    Note: Please do remember to set the Format of the TextInput as Number.

     Please check the following gif.

    123001Gif.gif

    Hope it could help.

    Regards,

    Qi

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete