# Optional flow argument

**URL:** <https://community.homey.app/t/optional-flow-argument/25971>\
**Category:** Developers\
**Created:** [February 16, 2020, 2:15pm UTC](https://community.homey.app/t/optional-flow-argument/25971 "2020-02-16T14:15:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaxvandeLaar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maxvandelaar/32/18367_2.png) [@MaxvandeLaar](https://community.homey.app/u/MaxvandeLaar)\
**Post date:** [February 16, 2020, 2:15pm UTC](https://community.homey.app/t/optional-flow-argument/25971/1 "2020-02-16T14:15:12Z")

</div>

I have a flow card where I have 3 arguments. However, two of those arguments are not mandatory, so does anyone know if it is possible to set optional card arguments, and if so, how?

If this is not possible, is it possible to set default argument values?

Thanks!

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [February 17, 2020, 3:34pm UTC](https://community.homey.app/t/optional-flow-argument/25971/2 "2020-02-17T15:34:17Z")

</div>

Think nobody understands what you mean, can you be more precise and give an example and/or screenshots or flow? What is the description of what you want to happen?

---

<div class="post-metadata">

**Author:** ![MaxvandeLaar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maxvandelaar/32/18367_2.png) [@MaxvandeLaar](https://community.homey.app/u/MaxvandeLaar)\
**Post date:** [February 18, 2020, 8:29am UTC](https://community.homey.app/t/optional-flow-argument/25971/3 "2020-02-18T08:29:08Z")

</div>

Hmmm, interesting… I just made you a screenshot of what I mean and tried to get a screenshot of the error I got the other day. But I can’t reproduce it and everything works as intend.

Thanks anyway 🙂

---

<div class="post-metadata">

**Author:** ![Emile](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/emile/32/115314_2.png) [@Emile](https://community.homey.app/u/Emile)\
**Post date:** [February 18, 2020, 12:45pm UTC](https://community.homey.app/t/optional-flow-argument/25971/4 "2020-02-18T12:45:58Z")

</div>

Add `"required": false` to your Flow Card’s JSON.

---

<div class="post-metadata">

**Author:** ![MaxvandeLaar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maxvandelaar/32/18367_2.png) [@MaxvandeLaar](https://community.homey.app/u/MaxvandeLaar)\
**Post date:** [February 18, 2020, 12:56pm UTC](https://community.homey.app/t/optional-flow-argument/25971/5 "2020-02-18T12:56:49Z")

</div>

Thanks @Emile!
