Hi
@John Heck,
If it is OK for them to see lower case while entering, but have it switch and save to upper case, then
OnChange of the Text Box
UpdateContext({varUpper: Upper(Self.Text)});
Reset(Self)
Default (assuming you want to also display existing values if they are present and not change them)
Coalesce(varUpper, Parent.Default)
DelayOutput
true
OnSuccess of Form and screen OnVisible
UpdateContext({varUpper: Blank()})
See below
------------------------------
Warren Belz
MVP (Business Applications)
Australia
------------------------------
Original Message:
Sent: Jan 25, 2023 11:17 AM
From: Ed Bellman
Subject: Forcing upper case letters in a datacard or text field entry
Thisn't is a perfect or elegant solution, but it works -
Insert a Label (Label11 in screenshots) and Text Input field (TextInput1). Arrange them so that the X,Y values are the same in the canvas and in the Tree view on the left, make sure the Text Input field is above the Label so that it will receive the focus from the tab or mouse selection.
Set the following properties:
- TextInput1
- Color - transparent (use the picker or just set the A value of RGBA to 0)
- Fill Color - transparent
- Hover Color - transparent
- Hover Fill - transparent
- Maybe Pressed and Focus colors as well?
- Label11
- Text = Upper(TextInput1.Text)
- X = TextInput1.X
- Y = TextInput1.Y
- Width = TextInput1.Width
Test in play mode
------------------------------
Ed Bellman
Principal Consultant - Power Apps
Fairborn, OH
ed.bellman@outlook.com
Original Message:
Sent: Jan 24, 2023 03:02 PM
From: Larry Heimendinger
Subject: Forcing upper case letters in a datacard or text field entry
Without trying to verify this, you might want to use the Upper() fuction in the OnChange or even the OnSelelct prooperty of othe field in the datacard to show the user the changed value.
OTOH, I am often surprised at how something seemingly obvious iin approach fails in practice
------------------------------
Larry Heimendinger
larry@techevents.com
EverettWA
Original Message:
Sent: Jan 23, 2023 04:37 PM
From: John Heck
Subject: Forcing upper case letters in a datacard or text field entry
Hello,
Trying to figure out how to force upper case letters in a datacard or text field entry. I have a couple of datacards that I want to have forced to upper case on a form. The user needs to be able to see the entries in all upper case before they submit the form. A SubmitForm() is used to submit the form and write the data to the Azure SQL back end.
I have another screen that the user can enter information into text boxes and I use the Upper() function in the Patch() to force the entry to upper case. Though it would be nice to have the user be able to see the case of the data entry, all upper case, before they submit the form.
Thanks in advance for your assistance.
------------------------------
Kind regards,
John Heck
-----------------------
------------------------------