# To retain text field size in template

**URL:** <https://forum.inductiveautomation.com/t/to-retain-text-field-size-in-template/31120>\
**Category:** Ignition\
**Created:** [January 7, 2020, 10:23pm UTC](https://forum.inductiveautomation.com/t/to-retain-text-field-size-in-template/31120 "2020-01-07T22:23:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaoliang](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@chaoliang](https://forum.inductiveautomation.com/u/chaoliang)\
**Post date:** [January 7, 2020, 10:23pm UTC](https://forum.inductiveautomation.com/t/to-retain-text-field-size-in-template/31120/1 "2020-01-07T22:23:28Z")

</div>

Hi I was searching the forum about the solution to the following design requirement but couldn’t find any positive solution.  
As seen the in the following template, there’s string at the left as description, a text box in the middle as data entry, a string at the right as engineering unit.  
When placing the template to the main screen and stretching it to fit the window size, I want the retain the width of the data entry text box and the right PVEU string, but the left description string can stretch to fit the actual width.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/d/d9d95d28660127a15c5ae5d1b876bf0e79e4ff0c.png)  
I tried various anchor options, but none of the combination can retain the text box width.

Can anyone help on it?

Many thanks  
Cheers  
Chaoliang

---

<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 7, 2020, 10:56pm UTC](https://forum.inductiveautomation.com/t/to-retain-text-field-size-in-template/31120/2 "2020-01-07T22:56:52Z")

</div>

First, make sure that the actual template is set to ‘Enable Layout’. Second, set the long label to anchored layout, pinned to _both_ the left and right (and probably the bottom. Finally, anchor the numeric label and engineering units to the bottom and the right. End result should behave like you want:

 ![stretch](https://us1.discourse-cdn.com/inductiveautomation/original/2X/d/d50555c500b02ef3de241c1dca2dedac49c3cbc5.gif)
