cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pn1995
Helper I
Helper I

Make All Text Entries Capital

Hi

We have a PowerApp form that is built on a SharePoint list

 

We would like all the text the user enters into the form to be in CAPITALS 

 

Anyone know if its possible to format the entries, either while typing, or when the form is saved into Capitals?

 

Thanks 

1 ACCEPTED SOLUTION

Accepted Solutions

@Moto-moto ,

This is an old closed post but OnChange

UpdateContext({varUpper: Upper(Self.Text)});
Reset(Self)

Default

varUpper

 

View solution in original post

10 REPLIES 10
RandyHayes
Super User
Super User

@pn1995 

Not much to do about doing this while the user types it.

However, you can use the Upper function on the field to save it at submit time.

If you are using a form, then change the Update property of the datacard and put it in an Upper() function.

Ex. if you have a DataCard that has an update property of, say, DataCardValue1.Text then unlock the datacard and change the Update Property to Upper(DataCardValue1.Text)

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
v-xida-msft
Community Support
Community Support

Hi @pn1995 ,

Could you please share a bit more about your scenario?

Do you want to format the entries into Capitals within your Edit form or save entries as Capitals into your SP list?

 

If you want to format the entries into Capitals while typing within the Edit form, I afraid that there is no way to achieve your needs in PowerApps currently.

 

As an alternative solution, you could consider save entries as Capitals values into your SP list. I agree with @pn1995 's thought almost.

I have made a test on my side, please take a try with the following workaround:1.JPG

Set the Update property of the Data card controls within your Edit form to following:

Upper(DataCardValue6.Text)   /* <-- convert original value into Capitals using Upper() function */

Note: The DataCardValue6 represents the Text Input box controls within your Edit form.

 

More details about Upper function in PowerApps, please check the following article:

Upper function

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@pn1995 

Let me know if the Upper function is what you're looking for, or if you have more questions.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
benra
Frequent Visitor

I did this by having a hidden TextInput then used Upper in the hidden TextInput and using that value instead of what been typed in the visible TextInput.

 

So TextInput1 is visible for the user to type into, TextInput2 is hidden and has value of Upper(TextInput1.Text)

 

I don't know if this helps.

C-J
New Member

I was looking to do something similar and thought I'd simply add that it is possible, and actually quite simple.

 

You firstly need to look at the onChange event of the text box. The idea is to update a variable (I use UpdateContext to scope the data locally) such that it is updated:

 

UpdateContext({ textToUpperr: Upper(txtBox.Text) })

 

If you then set the Default setting on the textbox to hold this variable, the text box will then update its value to uppercase. Note that the onChange fires when focus is lost from the box (e.g. clicking or 'tabbing' away from the control).

@C-J  I take it the Default and On-Change have this variable?

 

UpdateContext({ textToUpperr: Upper(txtBox.Text) })

 

Cheers

 

John.

stayinginsync
Advocate II
Advocate II

Putting this in the "Format" property of the TextBox input should capitalize while the user is typing.

 

Upper(txtTextBox.Text)

 

not working

@Moto-moto ,

This is an old closed post but OnChange

UpdateContext({varUpper: Upper(Self.Text)});
Reset(Self)

Default

varUpper

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,465)