# Ionic 3 create checkbox dynamic

**URL:** <https://forum.ionicframework.com/t/ionic-3-create-checkbox-dynamic/123625>\
**Category:** ionic-v3\
**Created:** [March 6, 2018, 5:33pm UTC](https://forum.ionicframework.com/t/ionic-3-create-checkbox-dynamic/123625 "2018-03-06T17:33:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sreejith13](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@sreejith13](https://forum.ionicframework.com/u/sreejith13)\
**Post date:** [March 6, 2018, 5:33pm UTC](https://forum.ionicframework.com/t/ionic-3-create-checkbox-dynamic/123625/1 "2018-03-06T17:33:35Z")

</div>

hello everyone  
iam new to ionic.  
i want to create check boxes dynamicaly in ionic 3.  
iam trying to call an api which return any array of item name.so i need to create check boxes for each item.  
how it is possible in ionic 3

---

<div class="post-metadata">

**Author:** ![vibinflogesoft](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/vibinflogesoft/32/117525_2.png) [@vibinflogesoft](https://forum.ionicframework.com/u/vibinflogesoft)\
**Post date:** [March 7, 2018, 12:32pm UTC](https://forum.ionicframework.com/t/ionic-3-create-checkbox-dynamic/123625/2 "2018-03-07T12:32:18Z")

</div>

Hi@sreejith13  
You can use ionic select component for checkbox functionality with multiple=true condition  
You can create checkbox dynamically something like this

```auto
<ion-select multiple="true">
		<ion-option *ngFor="let option of items?.values" value="{{option?.value}}">{{option?.text}}
               </ion-option>
</ion-select>

```

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:46pm UTC](https://forum.ionicframework.com/t/ionic-3-create-checkbox-dynamic/123625/3 "2021-07-19T21:46:26Z")

</div>

Closed on July 19, 2021, 9:46pm UTC


