# Convert text input automatically to all caps

**URL:** <https://forums.pega.com/t/convert-text-input-automatically-to-all-caps/4846>\
**Category:** General\
**Tags:** 8-6-1, app-studio, dev-designer-studio, healthcare-and-life-sciences, system-architect\
**Created:** [July 26, 2023, 12:19pm UTC](https://forums.pega.com/t/convert-text-input-automatically-to-all-caps/4846 "2023-07-26T12:19:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CROBERTSCOTT](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/crobertscott/32/11392_2.png) [@CROBERTSCOTT](https://forums.pega.com/u/CROBERTSCOTT)\
**Post date:** [July 26, 2023, 12:19pm UTC](https://forums.pega.com/t/convert-text-input-automatically-to-all-caps/4846/1 "2023-07-26T12:19:20Z")

</div>

Hello!

Is there a way to make text input boxes all caps as the user types? We have a requirement that inputs in certain autocomplete sections be all caps - they return the capitalized selection when using Tab or selection from the dropdown list, but if a user manually types the selection and clicks outside of the text box, the selection remains lowercase.

Is there a way to set the text box to uppercase by default, so the text never displays lowercase?

![Code.png](https://pega1.discourse-cdn.com/pega/original/2X/3/364aea0d9dda6d46e22c2986d8f2aa100b2148ee.png)

---

<div class="post-metadata">

**Author:** ![imGaurav](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/imgaurav/32/23708_2.png) [@imGaurav](https://forums.pega.com/u/imGaurav)\
**Post date:** [July 26, 2023, 12:28pm UTC](https://forums.pega.com/t/convert-text-input-automatically-to-all-caps/4846/2 "2023-07-26T12:28:24Z")

</div>

@CROBERTSCOTT You can use touppercase on the property validate method.

---

<div class="post-metadata">

**Author:** ![CROBERTSCOTT](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/crobertscott/32/11392_2.png) [@CROBERTSCOTT](https://forums.pega.com/u/CROBERTSCOTT)\
**Post date:** [July 26, 2023, 12:57pm UTC](https://forums.pega.com/t/convert-text-input-automatically-to-all-caps/4846/3 "2023-07-26T12:57:20Z")

</div>

@gasharma Thank you! I am a Junior Developer and have little experience, would you be able to show me where to find this?

---

<div class="post-metadata">

**Author:** ![CROBERTSCOTT](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/crobertscott/32/11392_2.png) [@CROBERTSCOTT](https://forums.pega.com/u/CROBERTSCOTT)\
**Post date:** [July 26, 2023, 1:08pm UTC](https://forums.pega.com/t/convert-text-input-automatically-to-all-caps/4846/4 "2023-07-26T13:08:35Z")

</div>

@gasharma Ah, disregard that. I have located where to do this. Thank you!
