# TextArea Tag not enabling response to be submit

**URL:** <https://community.labelstud.io/t/textarea-tag-not-enabling-response-to-be-submit/269>\
**Category:** Label Studio Support\
**Created:** [July 3, 2024, 7:53pm UTC](https://community.labelstud.io/t/textarea-tag-not-enabling-response-to-be-submit/269 "2024-07-03T19:53:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmcrun](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@dmcrun](https://community.labelstud.io/u/dmcrun)\
**Post date:** [July 3, 2024, 7:53pm UTC](https://community.labelstud.io/t/textarea-tag-not-enabling-response-to-be-submit/269/1 "2024-07-03T19:53:57Z")

</div>

Hello community, hoping you can help me with this one.

I have an xml snippet in my UI which includes a conditional TextArea where a respondent answers two text box responses.

When testing this, on entering the response, when I click submit, it duplicates the first TextArea response, but doesn’t submit the whole annotation. I have included a screenshot as an example.

Could anyone suggest where I might be going wrong? Thanks!  
 ![Screenshot 2024-07-03 205139](https://canada1.discourse-cdn.com/flex035/uploads/labelstudio/original/1X/a341de8bf6a856fd49365e69c1a5442693eaa15f.png)

---

<div class="post-metadata">

**Author:** ![dmcrun](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@dmcrun](https://community.labelstud.io/u/dmcrun)\
**Post date:** [July 4, 2024, 10:39am UTC](https://community.labelstud.io/t/textarea-tag-not-enabling-response-to-be-submit/269/3 "2024-07-04T10:39:14Z")

</div>

This is my code

```auto
<View>
	<Header name="text" value="What is your preferred model output?"/>
  <Choices name="preferred" toName="text" showInLine="true">
    <Choice value="Option 1 (left)"/>
    <Choice value="Option 2 (middle)"/>
    <Choice value="Option 3 (right)"/>
    <Choice value="None"/>
  </Choices>
  
  <View visibleWhen="choice-selected" whenTagName="preferred" whenChoiceValue="Option 1 (left),Option 2 (middle),Option 3 (right)">
    <Header value="Why did you choose this option?"/>
      <TextArea name="choose_option" toName="text" showSubmitButton="false" maxSubmissions="1" editable="false" required="true"/>
    <Header value="Any possible improvements?"/>
      <TextArea name="improvements" toName="text" showSubmitButton="false" maxSubmissions="1" editable="false" required="true"/>
  </View>
</View>

```

---

<div class="post-metadata">

**Author:** ![makseq](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.labelstud.io/makseq/32/26_2.png) [@makseq](https://community.labelstud.io/u/makseq)\
**Post date:** [July 5, 2024, 2:16pm UTC](https://community.labelstud.io/t/textarea-tag-not-enabling-response-to-be-submit/269/4 "2024-07-05T14:16:06Z")

</div>

Hi,

`<Header>` is not an object tag and it can’t be linked with control tags like `<Choices>`.  
Use `<Text name="text" ...>` instead of Header. There is a fixed version of the labeling config where you won’t have duplicated textarea inputs:

```auto
<View>
  <Header name="header" value="Just a visual header, it's not an object tag"/>
  <Text name="text" value="This is an object tag"/>
  <Choices name="preferred" toName="text" showInLine="true">
    <Choice value="Option 1 (left)"/>
    <Choice value="Option 2 (middle)"/>
    <Choice value="Option 3 (right)"/>
    <Choice value="None"/>
  </Choices>
  
  <View visibleWhen="choice-selected" whenTagName="preferred" whenChoiceValue="Option 1 (left),Option 2 (middle),Option 3 (right)">
    <Header value="Why did you choose this option?"/>
      <TextArea name="choose_option" toName="text" showSubmitButton="false" maxSubmissions="1" editable="false" required="true"/>
    <Header value="Any possible improvements?"/>
      <TextArea name="improvements" toName="text" showSubmitButton="false" maxSubmissions="1" editable="false" required="true"/>
  </View>
</View>

```

---

<div class="post-metadata">

**Author:** ![dmcrun](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@dmcrun](https://community.labelstud.io/u/dmcrun)\
**Post date:** [July 9, 2024, 9:26am UTC](https://community.labelstud.io/t/textarea-tag-not-enabling-response-to-be-submit/269/5 "2024-07-09T09:26:39Z")

</div>

Brill, that works, thank you!
