# Connect my custom input with ion-item

**URL:** <https://forum.ionicframework.com/t/connect-my-custom-input-with-ion-item/84781>\
**Category:** ionic-v3\
**Created:** [March 30, 2017, 1:22pm UTC](https://forum.ionicframework.com/t/connect-my-custom-input-with-ion-item/84781 "2017-03-30T13:22:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![castelaufederico](https://avatars.discourse-cdn.com/v4/letter/c/59ef9b/32.png) [@castelaufederico](https://forum.ionicframework.com/u/castelaufederico)\
**Post date:** [March 30, 2017, 1:22pm UTC](https://forum.ionicframework.com/t/connect-my-custom-input-with-ion-item/84781/1 "2017-03-30T13:22:51Z")

</div>

Hi, i created a custom input in angular 2 but when i have a problem. I want to that ion-item show border in red when input is invalid, green when is valid or blue when is focused. Thank you !

---

<div class="post-metadata">

**Author:** ![lucasbasquerotto](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/lucasbasquerotto/32/101719_2.png) [@lucasbasquerotto](https://forum.ionicframework.com/u/lucasbasquerotto)\
**Post date:** [April 3, 2017, 7:35pm UTC](https://forum.ionicframework.com/t/connect-my-custom-input-with-ion-item/84781/2 "2017-04-03T19:35:15Z")

</div>

I’m hoping too that `ion-item` could see custom inputs instead of only `ionic` inputs to make them more flexible, after all it’s not always that a pure `ionic` input would work, and having some `ion-items` working and not the others is a real problem. But it seems to not work in such cases (yet) though 😕

---

<div class="post-metadata">

**Author:** ![lucasbasquerotto](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/lucasbasquerotto/32/101719_2.png) [@lucasbasquerotto](https://forum.ionicframework.com/u/lucasbasquerotto)\
**Post date:** [April 4, 2017, 7:46pm UTC](https://forum.ionicframework.com/t/connect-my-custom-input-with-ion-item/84781/3 "2017-04-04T19:46:08Z")

</div>

@jgw9617 @bengtler @brandyshea any news about this? From what I see there is no way to connect the custom input to the `ion-item`:

```
<ion-item>
	<ion-label stacked>Some Input</ion-label>
	<my-input item-content [formControlName]="name" [(ngModel)]="value"></my-input>
</ion-row>

```

My custom inputs implements `ModelValueAccessor` and the control have the correct state valid, invalid, etc…, but **even if the control is invalid the border in the bottom is valid (green)**, because the `ion-item` is valid (if I look at the element class).

It is not difficult to have a case where the `ionic` inputs won’t work (isolated), even if they can be used in several cases. So it is natural to hope that we could create custom inputs and make them behave like they were the `ionic` ones, I think.

**Will the Ionic team provide such a feature in the short or mid term?**
