# Label property for perspective Text Field component?

**URL:** <https://forum.inductiveautomation.com/t/label-property-for-perspective-text-field-component/86466>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [February 27, 2024, 9:39pm UTC](https://forum.inductiveautomation.com/t/label-property-for-perspective-text-field-component/86466 "2024-02-27T21:39:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![e\_l](https://avatars.discourse-cdn.com/v4/letter/e/9de0a6/32.png) [@e\_l](https://forum.inductiveautomation.com/u/e_l)\
**Post date:** [February 27, 2024, 9:39pm UTC](https://forum.inductiveautomation.com/t/label-property-for-perspective-text-field-component/86466/1 "2024-02-27T21:39:02Z")

</div>

I may be missing something here, but It seems like there should be a "Label" property on some of the perspective input components such as Text Field like there is on others such as Checkbox and Toggle Switch. I can obviously add a label component to describe the text field, but I would much prefer not to add a separate component just for a label. Label seems to be so well implemented in say the Checkbox component (though there the property is called "text"), and it allows 4 "textPosition" selections to boot.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [February 27, 2024, 9:42pm UTC](https://forum.inductiveautomation.com/t/label-property-for-perspective-text-field-component/86466/2 "2024-02-27T21:42:42Z")

</div>

No, you haven't missed anything. It's not there.  
You can make your own "component" quite easily by creating a view with the Label and Text Field components and then use the Embedded View component. You may find that you need to pass parameters in and out.

Try it and call back if you get stuck.

---

<div class="post-metadata">

**Author:** ![e\_l](https://avatars.discourse-cdn.com/v4/letter/e/9de0a6/32.png) [@e\_l](https://forum.inductiveautomation.com/u/e_l)\
**Post date:** [February 27, 2024, 9:47pm UTC](https://forum.inductiveautomation.com/t/label-property-for-perspective-text-field-component/86466/3 "2024-02-27T21:47:52Z")

</div>

Thanks. I'll give it a go. I had already considered it, but it seemed sort of "excessive" (a view as opposed to just a property) so I was kinda fishing for other ideas. Thanks again!

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 27, 2024, 9:57pm UTC](https://forum.inductiveautomation.com/t/label-property-for-perspective-text-field-component/86466/4 "2024-02-27T21:57:32Z")

</div>

> [@e\_l](#):
>
> sort of "excessive"

It is. Excess nesting of views has negative performance implications, too. Wrapping a label and a field in a flex row and copying that around (for non-dynamic stuff) is more performant.

---

<div class="post-metadata">

**Author:** ![e\_l](https://avatars.discourse-cdn.com/v4/letter/e/9de0a6/32.png) [@e\_l](https://forum.inductiveautomation.com/u/e_l)\
**Post date:** [February 27, 2024, 10:11pm UTC](https://forum.inductiveautomation.com/t/label-property-for-perspective-text-field-component/86466/5 "2024-02-27T22:11:53Z")

</div>

> [@pturmel](#):
>
> Wrapping a label and a field in a flex row

Thanks. I'll try that. What I have been doing before now is creating a coordinate container that contained a label and text component. This at least helped with organization within the project browser, but is still a bit messy, and has more "reference levels" than should be necessary.
