# Validating input into a text field

**URL:** <https://forum.inductiveautomation.com/t/validating-input-into-a-text-field/21158>\
**Category:** Ignition\
**Tags:** ignition78\
**Created:** [November 30, 2018, 3:44pm UTC](https://forum.inductiveautomation.com/t/validating-input-into-a-text-field/21158 "2018-11-30T15:44:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [November 30, 2018, 3:44pm UTC](https://forum.inductiveautomation.com/t/validating-input-into-a-text-field/21158/1 "2018-11-30T15:44:07Z")

</div>

I have a text field that is later used in a path. So I want to do 2 things - limit how long the input can be in the text field to prevent “path too long” issues I’ve faced before, and not allow the “/” characte to be used, as that too was an issue I had to resolve. How can I do this with ignition? Or does this HAVE to be scripted?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 30, 2018, 3:55pm UTC](https://forum.inductiveautomation.com/t/validating-input-into-a-text-field/21158/2 "2018-11-30T15:55:24Z")

</div>

You should be able to do this with the [Formatted Text Field](https://docs.inductiveautomation.com/display/DOC79/Formatted+Text+Field) component.

---

<div class="post-metadata">

**Author:** ![ian.sebryk](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ian.sebryk/32/49319_2.png) [@ian.sebryk](https://forum.inductiveautomation.com/u/ian.sebryk)\
**Post date:** [January 10, 2024, 9:23pm UTC](https://forum.inductiveautomation.com/t/validating-input-into-a-text-field/21158/3 "2024-01-10T21:23:46Z")

</div>

since this component is no longer in 8.1, what's the new 'best practice' for doing this? for example, user enters `user.name`. i want to just validate this, removing the dot, and then camel-casing it: `userName`. use pure scripting, i'm presuming? or is there a something i haven't found yet that replaces the Formatted Text Field?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [January 10, 2024, 9:24pm UTC](https://forum.inductiveautomation.com/t/validating-input-into-a-text-field/21158/4 "2024-01-10T21:24:56Z")

</div>

Formatted Text Field is a Vision component that still exists.

Are you trying to do something similar in Perspective?

---

<div class="post-metadata">

**Author:** ![ian.sebryk](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ian.sebryk/32/49319_2.png) [@ian.sebryk](https://forum.inductiveautomation.com/u/ian.sebryk)\
**Post date:** [January 10, 2024, 9:29pm UTC](https://forum.inductiveautomation.com/t/validating-input-into-a-text-field/21158/5 "2024-01-10T21:29:19Z")

</div>

yes. sorry. wasn't aware it was Vision only. 😛 there wasn't a tag on the post. i should have clarified, since i'm learning the world does NOT actually spin around me with everyone devoted to my every whim. 😆

dang it.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 10, 2024, 9:30pm UTC](https://forum.inductiveautomation.com/t/validating-input-into-a-text-field/21158/6 "2024-01-10T21:30:21Z")

</div>

2018 and Ignition 7.8 - Vision only.

As for your question, there's no direct analogue. You'll have to use scripting, though the new Form component that's coming in 8.3 is probably going to be relevant to whatever your ultimate goal is.

---

<div class="post-metadata">

**Author:** ![ian.sebryk](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ian.sebryk/32/49319_2.png) [@ian.sebryk](https://forum.inductiveautomation.com/u/ian.sebryk)\
**Post date:** [January 10, 2024, 9:32pm UTC](https://forum.inductiveautomation.com/t/validating-input-into-a-text-field/21158/7 "2024-01-10T21:32:52Z")

</div>

sweet! an excuse to read Reddit posts until that drops! you're awesome! 😃

yeah. i figured so. i just wanted to flight-check before i got too far only to realize: oh, there's a button for that! 🙂
