# Show/Hide Choice Fields

**URL:** <https://forum.kintone.dev/t/show-hide-choice-fields/298>\
**Category:** General\
**Created:** [February 14, 2020, 4:30pm UTC](https://forum.kintone.dev/t/show-hide-choice-fields/298 "2020-02-14T16:30:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [February 14, 2020, 4:30pm UTC](https://forum.kintone.dev/t/show-hide-choice-fields/298/1 "2020-02-14T16:30:08Z")

</div>

I’ve been looking at the sample code under “Show, Hide, or Restrict Fields”, but I’m a little confused. The samples list the fields to be shown or hidden as different field types, but mine are all the same field types. I have a multi-choice checkbox field and I want to show or hide three other multi-choice checkbox fields based on the selections of the first. Can anyone direct me on how to do that?

&nbsp;

Thanks!

&nbsp;

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [February 17, 2020, 3:33pm UTC](https://forum.kintone.dev/t/show-hide-choice-fields/298/2 "2020-02-17T15:33:59Z")

</div>

Hello Leslie!

I assume that you’re looking at the following page:  
[https://developer.kintone.io/hc/en-us/articles/115005449707-Show-and-hide-fields-using-checkboxes](https://developer.kintone.io/hc/en-us/articles/115005449707-Show-and-hide-fields-using-checkboxes)

If it is, the field type could be the same.  
The page is just showing that it could be done with other field types too.  
With that being said, you simply need to adjust the field code and the if/else statement part in the sample code.

I hope this helps.

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [February 18, 2020, 3:04pm UTC](https://forum.kintone.dev/t/show-hide-choice-fields/298/3 "2020-02-18T15:04:46Z")

</div>

Thank you. Would I save the code as a .js file and upload it to the “System-Wide JavaScript Customization” page? Do I need to somehow indicate which of my apps it’s for?

&nbsp;

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [February 18, 2020, 11:12pm UTC](https://forum.kintone.dev/t/show-hide-choice-fields/298/4 "2020-02-18T23:12:20Z")

</div>

You should save it as a .js file and upload it per App  
[https://developer.kintone.io/hc/en-us/articles/213149667](https://developer.kintone.io/hc/en-us/articles/213149667)

Keep us updated so we can help you out!
