# Using readOnly property

**URL:** <https://forum.servoy.com/t/using-readonly-property/8639>\
**Category:** Classic Servoy\
**Created:** [January 24, 2008, 10:41am UTC](https://forum.servoy.com/t/using-readonly-property/8639 "2008-01-24T10:41:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinh](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@martinh](https://forum.servoy.com/u/martinh)\
**Post date:** [January 24, 2008, 10:41am UTC](https://forum.servoy.com/t/using-readonly-property/8639/1 "2008-01-24T10:41:58Z")

</div>

I have a situation where I ask myself if the way it works is correct:

First I want to put the whole form readonly.  
Then I want to make 1 checkbox not readonly because it is used to select records (in tableview).

So:

```auto
forms.myForm.controller.readOnly = true
forms.myForm.elements.myCheckbox.readOnly = false

```

After this coding I expect to have a readonly form, except the checkbox. Unfortunately that is not the case; my checkbox remains readonly, even where the readonly property is set to false.

In my opinion the way it works now it is not good behavior.  
Do you agree and if you think this is good behavior, do you have a solution for this situation?

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [January 24, 2008, 10:49am UTC](https://forum.servoy.com/t/using-readonly-property/8639/2 "2008-01-24T10:49:36Z")

</div>

I would say the behavior is OK. If you set a form to readOnly, that form is “locked” as a whole. If you want all but one fields to be read only, you either have to walk over all elements or maybe put that checkbox in a tab panel.
