# HTML Form Entry Checkbox Toggle Question

**URL:** <https://talk.openmrs.org/t/html-form-entry-checkbox-toggle-question/19677>\
**Category:** Development\
**Tags:** html-form-entry, htmlform\
**Created:** [August 30, 2018, 1:32pm UTC](https://talk.openmrs.org/t/html-form-entry-checkbox-toggle-question/19677 "2018-08-30T13:32:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmptrsean](https://talk.openmrs.org/letter_avatar/cmptrsean/32/5_5575768a8748004e209b776fc1b2916d.png) [@cmptrsean](https://talk.openmrs.org/u/cmptrsean)\
**Post date:** [August 30, 2018, 1:32pm UTC](https://talk.openmrs.org/t/html-form-entry-checkbox-toggle-question/19677/1 "2018-08-30T13:32:12Z")

</div>

Hi, I was having an issue with using toggle on a checkbox. I’m trying to have a checkbox labeled other that when chosen creates a text field to specify what other is in this case. The following segmet is what have in my form.

```
    <table class="baseline-aligned">
        <table><tr><td>
            ...
            <obs conceptId="concept_id" answerConceptId="other_id" answerCode="module.form.other.label" style="checkbox" toggle="specifyOther" />
        </td></tr></table>
    </table>
    <div id ="specifyOther">
        <table class="baseline-aligned">
            <obs conceptId="specifyOther_id" labelCode="module.form.specifyOther.label" style="textarea" />
        </table>
    </div>

```

Checking and unchecking the other checkbox does not appear to change whether the other text field is displayed. Does anyone have an idea on why this is?

---

<div class="post-metadata">

**Author:** ![ball](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ball/32/277_2.png) [@ball](https://talk.openmrs.org/u/ball)\
**Post date:** [August 31, 2018, 1:20pm UTC](https://talk.openmrs.org/t/html-form-entry-checkbox-toggle-question/19677/2 "2018-08-31T13:20:48Z")

</div>

Try putting the toggled obs in the same cell. I think it won’t work when it’s in another table cell — which isn’t ideal.

Ellen
