# Read-only field

**URL:** <https://forum.odk-x.org/t/read-only-field/486>\
**Category:** Support\
**Created:** [May 3, 2019, 9:16am UTC](https://forum.odk-x.org/t/read-only-field/486 "2019-05-03T09:16:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nsthakuri](https://odkx.b-cdn.net/letter_avatar_proxy/v4/letter/n/82dd89/32.png) [@nsthakuri](https://forum.odk-x.org/u/nsthakuri)\
**Post date:** [May 3, 2019, 9:16am UTC](https://forum.odk-x.org/t/read-only-field/486/1 "2019-05-03T09:16:50Z")

</div>

Hi,  
How to make a text field as read only field (non-editable) in odk2.0? Could anyone please help?

Thanks,  
Narendra

---

<div class="post-metadata">

**Author:** ![elmps2018](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/elmps2018/32/105_2.png) [@elmps2018](https://forum.odk-x.org/u/elmps2018)\
**Post date:** [May 3, 2019, 5:23pm UTC](https://forum.odk-x.org/t/read-only-field/486/2 "2019-05-03T17:23:20Z")

</div>

A read-only field is referred to as a note prompt type, see: [ODK-X XLSX Converter Reference — ODK-X Docs](https://docs.opendatakit.org/odk-x/xlsx-converter-reference/#id4)

---

<div class="post-metadata">

**Author:** ![fvandyk](https://odkx.b-cdn.net/letter_avatar_proxy/v4/letter/f/c68b51/32.png) [@fvandyk](https://forum.odk-x.org/u/fvandyk)\
**Post date:** [May 6, 2019, 11:41pm UTC](https://forum.odk-x.org/t/read-only-field/486/3 "2019-05-06T23:41:06Z")

</div>

Thanks Caroline,  
Could you use a _note_ prompt to show an ID passed from another table. For example, if we create an _enrollment_ form for women in our study and each woman gets a womanID. Then we want to add related forms (_followup_) for this woman. When a new _followup_ form is created, we prefill the womanID field (addRowWithSurvey). The key for the follow up form would be a compound key of womanID and date.

On the followup form, during add or edit, we don’t want the data collector to change the womanID field.

---

<div class="post-metadata">

**Author:** ![elmps2018](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/elmps2018/32/105_2.png) [@elmps2018](https://forum.odk-x.org/u/elmps2018)\
**Post date:** [May 7, 2019, 6:09am UTC](https://forum.odk-x.org/t/read-only-field/486/4 "2019-05-07T06:09:21Z")

</div>

Yes, you can definitely note an ID passed from another table. Any variable that is in the table (and once it has been passed through with model + query it will be in the table) can be noted. Or you can note text. We did this will all sorts of ids such as:  
Household No. – {{data.q100}}

---

<div class="post-metadata">

**Author:** ![nsthakuri](https://odkx.b-cdn.net/letter_avatar_proxy/v4/letter/n/82dd89/32.png) [@nsthakuri](https://forum.odk-x.org/u/nsthakuri)\
**Post date:** [May 15, 2019, 4:09am UTC](https://forum.odk-x.org/t/read-only-field/486/5 "2019-05-15T04:09:35Z")

</div>

Thank you very much @elmps2018 for you help. The note type is able to hold the id as read only text.  
Thanks.
