# Setting/Allowing Exceptions for questions

**URL:** <https://forum.dimagi.com/t/setting-allowing-exceptions-for-questions/6547>\
**Category:** Users\
**Created:** [June 6, 2019, 12:30pm UTC](https://forum.dimagi.com/t/setting-allowing-exceptions-for-questions/6547 "2019-06-06T12:30:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samuel\_Onyango](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/s/58f4c7/32.png) [@Samuel\_Onyango](https://forum.dimagi.com/u/Samuel_Onyango)\
**Post date:** [June 6, 2019, 12:30pm UTC](https://forum.dimagi.com/t/setting-allowing-exceptions-for-questions/6547/1 "2019-06-06T12:30:04Z")

</div>

Hello all,

I have set some questions in CommCare where I would like to record heights for certain variables.

What I would CommCare to do is, if an observation X isn't available I want CommCare to allow mobile users to put an "NA" or any value like "-99" instead of 0.

Thank you all and gladly waiting for your assistance on this.

---

<div class="post-metadata">

**Author:** ![Ethan\_Soergel](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/ethan_soergel/32/543_2.png) [@Ethan\_Soergel](https://forum.dimagi.com/u/Ethan_Soergel)\
**Post date:** [June 6, 2019, 3:16pm UTC](https://forum.dimagi.com/t/setting-allowing-exceptions-for-questions/6547/2 "2019-06-06T15:16:07Z")

</div>

Hi Samuel,

You can leave the question as optional and just have your users skip over it.

If you'd like more explicit confirmation, you could add a yes/no multiple choice question asking if the measurement is available, and if not, hide the height question using a display condition.

To control the output, you can add a hidden value question which does whatever transformations you like based on the other questions, and use that question as the source of "height" data.

-Ethan

---

<div class="post-metadata">

**Author:** ![Samuel\_Onyango](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/s/58f4c7/32.png) [@Samuel\_Onyango](https://forum.dimagi.com/u/Samuel_Onyango)\
**Post date:** [June 6, 2019, 3:22pm UTC](https://forum.dimagi.com/t/setting-allowing-exceptions-for-questions/6547/3 "2019-06-06T15:22:20Z")

</div>

Hi Ethan,

Thanks for your feedback, it's what i will surely do.

However, do you have any further suggestions on how I can limit the "---" that ComCare will bring under this question if it is skipped, is there any way I can replace these "---" with an "NA".

Regards.

---

<div class="post-metadata">

**Author:** ![Ethan\_Soergel](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/ethan_soergel/32/543_2.png) [@Ethan\_Soergel](https://forum.dimagi.com/u/Ethan_Soergel)\
**Post date:** [June 6, 2019, 3:58pm UTC](https://forum.dimagi.com/t/setting-allowing-exceptions-for-questions/6547/4 "2019-06-06T15:58:37Z")

</div>

The "---" is a placeholder for any properties that aren't set - I don't think there's an option to replace it. Instead, you could make a hidden value question which uses the [coalesce](https://confluence.dimagi.com/display/commcarepublic/CommCare+Functions#CommCareFunctions-coalesce) function to show the height if set, or "NA" if not set. Something like

```auto
coalesce(#form/height_question, "NA")

```
