# DC Choose OptionIndex Function Callback Error

**URL:** <https://forums.sketchup.com/t/dc-choose-optionindex-function-callback-error/132141>\
**Category:** Dynamic Components\
**Tags:** dynamiccomponents\
**Created:** [July 28, 2020, 4:35pm UTC](https://forums.sketchup.com/t/dc-choose-optionindex-function-callback-error/132141 "2020-07-28T16:35:06Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![allusernametaken](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@allusernametaken](https://forums.sketchup.com/u/allusernametaken)\
**Post date:** [July 28, 2020, 9:40pm UTC](https://forums.sketchup.com/t/dc-choose-optionindex-function-callback-error/132141/3 "2020-07-28T21:40:27Z")

</div>

Thank you @MikeWayzovski.

I have a question about this.

> [@MikeWayzovski](#):
>
> CHOOSE() requires a number,

[hidden\_example2.skp](https://forums.sketchup.com/uploads/short-url/jL87y82za5x6YMTqYNqH3QX9QOI.skp) (34.4 KB)  
this file is from the post below.  
[https://forums.sketchup.com/t/hiding-showing-components-within-a-dynamic-component/66645/6?u=allusernametaken](https://forums.sketchup.com/t/hiding-showing-components-within-a-dynamic-component/66645/6)

and this example doesn’t the index number value, but still works. what makes it work?

---

_[View the full topic](https://forums.sketchup.com/t/dc-choose-optionindex-function-callback-error/132141)._
