# Conditional readonly on ion-input

**URL:** <https://forum.ionicframework.com/t/conditional-readonly-on-ion-input/70132>\
**Category:** ionic-v3\
**Created:** [November 14, 2016, 3:11pm UTC](https://forum.ionicframework.com/t/conditional-readonly-on-ion-input/70132 "2016-11-14T15:11:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![arunbscmdu](https://avatars.discourse-cdn.com/v4/letter/a/c6cbf5/32.png) [@arunbscmdu](https://forum.ionicframework.com/u/arunbscmdu)\
**Post date:** [November 14, 2016, 3:11pm UTC](https://forum.ionicframework.com/t/conditional-readonly-on-ion-input/70132/1 "2016-11-14T15:11:04Z")

</div>

polyfills.js:3 Unhandled Promise rejection: Template parse errors:  
Can’t bind to ‘readOnly’ since it isn’t a known property of ‘ion-input’.

1. If ‘ion-input’ is an Angular component and it has ‘readOnly’ input, then verify that it is part of this module.
2. If ‘ion-input’ is a Web Component then add “CUSTOM\_ELEMENTS\_SCHEMA” to the ‘@NgModule.schema’ of this component to suppress this message.  
("\<input type=“checkbox” [(ngModel)]=“checked”\>  
\<ion-input [(ngModel)]=“[group.name](http://group.name)” type=“text” [ERROR -\>][readonly]=“checked()”\>  
  
  
"): GroupsPage@14:54 ; Zone: ; Task: Promise.then ; Value: Error: Template parse errors:(…) Error: Template parse errors:  
Can’t bind to ‘readOnly’ since it isn’t a known property of ‘ion-input’.
3. If ‘ion-input’ is an Angular component and it has ‘readOnly’ input, then verify that it is part of this module.
4. If ‘ion-input’ is a Web Component then add “CUSTOM\_ELEMENTS\_SCHEMA” to the ‘@NgModule.schema’ of this component to suppress this message.  
("\<input type=“checkbox” [(ngModel)]=“checked”\>  
\<ion-input [(ngModel)]=“[group.name](http://group.name)” type=“text” [ERROR -\>][readonly]=“checked()”\>

---

<div class="post-metadata">

**Author:** ![maxx0r](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/maxx0r/32/91299_2.png) [@maxx0r](https://forum.ionicframework.com/u/maxx0r)\
**Post date:** [November 14, 2016, 3:12pm UTC](https://forum.ionicframework.com/t/conditional-readonly-on-ion-input/70132/2 "2016-11-14T15:12:36Z")

</div>

Did you load the FormsModule? Can you post the template and backing?

> <https://github.com/ionic-team/ionic/issues/6408>

it’s a known bug. For now you could hide the wrapping element until there’s a fix
