# Conditional options possible?

**URL:** <https://community.hubspot.com/t/conditional-options-possible/3588>\
**Category:** CMS Development\
**Created:** [October 17, 2017, 2:01pm UTC](https://community.hubspot.com/t/conditional-options-possible/3588 "2017-10-17T14:01:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MvdLanden](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mvdlanden/32/22307_2.png) [@MvdLanden](https://community.hubspot.com/u/MvdLanden)\
**Post date:** [October 17, 2017, 2:01pm UTC](https://community.hubspot.com/t/conditional-options-possible/3588/1 "2017-10-17T14:01:10Z")

</div>

Hi everybody,

I was wondering if there is a possibility to have conditional options in your custom module. For example I would like to do something like:

`{% if boolean %}// add choicefield to my editable options{% endif %}`

Is there a way to do this?

Thanks. 🙂

---

<div class="post-metadata">

**Author:** ![anthonypizzurro](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anthonypizzurro/32/44503_2.png) [@anthonypizzurro](https://community.hubspot.com/u/anthonypizzurro)\
**Post date:** [October 17, 2017, 3:19pm UTC](https://community.hubspot.com/t/conditional-options-possible/3588/2 "2017-10-17T15:19:48Z")

</div>

When you create a custom module, you can add a boolean field:

 ![Screen Shot 2017-10-17 at 11.17.33 AM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/3/5/35756ed9741619cbbe9be4c76e2bb3f3419dd03b.png)  
Add boolean field

After you name it, you can create a HubL conditional like this:

```auto
{% if widget.your_new_boolean %}
<!-- HTML to show when checked -->
{% endif %}

```

---

<div class="post-metadata">

**Author:** ![MvdLanden](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mvdlanden/32/22307_2.png) [@MvdLanden](https://community.hubspot.com/u/MvdLanden)\
**Post date:** [October 18, 2017, 7:52am UTC](https://community.hubspot.com/t/conditional-options-possible/3588/3 "2017-10-18T07:52:26Z")

</div>

I am aware of this. However I’m not trying to show and hide the content on the front end but on the editor side. For example when I have a boolean which says “Show image” and is checked I want another option to appear in the editor which shows me the image options.

---

<div class="post-metadata">

**Author:** ![anthonypizzurro](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anthonypizzurro/32/44503_2.png) [@anthonypizzurro](https://community.hubspot.com/u/anthonypizzurro)\
**Post date:** [October 19, 2017, 1:56pm UTC](https://community.hubspot.com/t/conditional-options-possible/3588/4 "2017-10-19T13:56:01Z")

</div>

Ah, I understand what you mean now. Currently the there is no way to conditionally hide or show additional fields in the editor. We are aware that this is an issue and we’re looking into solutions for this.

Best,

Anthony
