# How to produce StringField Wide and MultiLine?

**URL:** <https://forum.inductiveautomation.com/t/how-to-produce-stringfield-wide-and-multiline/47323>\
**Category:** Module Development\
**Tags:** ignition80\
**Created:** [June 1, 2021, 8:45pm UTC](https://forum.inductiveautomation.com/t/how-to-produce-stringfield-wide-and-multiline/47323 "2021-06-01T20:45:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [June 1, 2021, 8:45pm UTC](https://forum.inductiveautomation.com/t/how-to-produce-stringfield-wide-and-multiline/47323/1 "2021-06-01T20:45:56Z")

</div>

I would like to create a field like for the **project description**.

If I use setWide() or setMultiLine(), it’s ok separately, but I can’t have both ? Only wide is ok whatever the set order.

```auto
public static final StringField BlockDefaultMessage = new StringField(META, "BlockDefaultMessage",SFieldFlags.SDESCRIPTIVE);

...

BlockDefaultMessage.setDefault("bla bla").setWide().setMultiLine();

```

---

<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:** [June 1, 2021, 9:10pm UTC](https://forum.inductiveautomation.com/t/how-to-produce-stringfield-wide-and-multiline/47323/2 "2021-06-01T21:10:36Z")

</div>

When you have a StringField, we’re going to render that in RecordEditForm using one of two Wicket components.  
If you use `setMultiLine()`, you’re opting in to the ‘text area’ editor, which is hardcoded to 4 rows x 45 cols.  
If you use `setWide()`, you’re just calling `setWidth(55)` - but doing that will only affect anything if you are using the ‘default’ single-line text editing component.

So I would just use `setMultiLine`.

---

<div class="post-metadata">

**Author:** ![nicholas.robinson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nicholas.robinson/32/22188_2.png) [@nicholas.robinson](https://forum.inductiveautomation.com/u/nicholas.robinson)\
**Post date:** [September 15, 2022, 8:12pm UTC](https://forum.inductiveautomation.com/t/how-to-produce-stringfield-wide-and-multiline/47323/3 "2022-09-15T20:12:51Z")

</div>

@paul-griffith so just to verify the summary here, a tall field OR a wide field is possible, but not both?

Thanks,

Nick

---

<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:** [September 15, 2022, 8:21pm UTC](https://forum.inductiveautomation.com/t/how-to-produce-stringfield-wide-and-multiline/47323/4 "2022-09-15T20:21:14Z")

</div>

Yes, that’s correct.

---

<div class="post-metadata">

**Author:** ![nicholas.robinson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nicholas.robinson/32/22188_2.png) [@nicholas.robinson](https://forum.inductiveautomation.com/u/nicholas.robinson)\
**Post date:** [September 15, 2022, 8:25pm UTC](https://forum.inductiveautomation.com/t/how-to-produce-stringfield-wide-and-multiline/47323/5 "2022-09-15T20:25:05Z")

</div>

Thanks.

Nick
