# Options expression: default option

**URL:** <https://forum.flowable.org/t/options-expression-default-option/2053>\
**Category:** Flowable Application\
**Created:** [May 25, 2018, 8:17am UTC](https://forum.flowable.org/t/options-expression-default-option/2053 "2018-05-25T08:17:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wjansenw](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/wjansenw/32/438_2.png) [@wjansenw](https://forum.flowable.org/u/wjansenw)\
**Post date:** [May 25, 2018, 8:17am UTC](https://forum.flowable.org/t/options-expression-default-option/2053/1 "2018-05-25T08:17:20Z")

</div>

Hi,  
I was trying out the options expression (via JSON string). I was wondering if there is a way to set the default option? I browsed the test codes, and don’t believe it is in the unit tests?  
Thanks,  
Wim

---

<div class="post-metadata">

**Author:** ![martin.grofcik](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/martin.grofcik/32/71_2.png) [@martin.grofcik](https://forum.flowable.org/u/martin.grofcik)\
**Post date:** [May 25, 2018, 8:24am UTC](https://forum.flowable.org/t/options-expression-default-option/2053/2 "2018-05-25T08:24:13Z")

</div>

Hi Wim,  
I did not understand your question. What were you trying?

Martin

---

<div class="post-metadata">

**Author:** ![wjansenw](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/wjansenw/32/438_2.png) [@wjansenw](https://forum.flowable.org/u/wjansenw)\
**Post date:** [May 25, 2018, 8:27am UTC](https://forum.flowable.org/t/options-expression-default-option/2053/3 "2018-05-25T08:27:37Z")

</div>

Let’s say i have 3 possible options in the dropdown, and I want one to be the default option (the one that is selected when form is opened). Is that possible?

Without the option expression, you can make one of the options the default one. But I can’t find how to do this with expressions.

![image](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/flowable/original/1X/7142a8429de3497d77c27e7e53fe63f2f0bb837f.png)

---

<div class="post-metadata">

**Author:** ![wjansenw](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/wjansenw/32/438_2.png) [@wjansenw](https://forum.flowable.org/u/wjansenw)\
**Post date:** [May 30, 2018, 9:11am UTC](https://forum.flowable.org/t/options-expression-default-option/2053/4 "2018-05-30T09:11:59Z")

</div>

OK, setting the variable to a value before the form gets initiated solved it for me. Would be great if this can also be done via JSON input.
