# Disable the Input Text field

**URL:** <https://community.bloomreach.com/t/disable-the-input-text-field/1307>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [July 31, 2019, 2:34pm UTC](https://community.bloomreach.com/t/disable-the-input-text-field/1307 "2019-07-31T14:34:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prats](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/prats/32/1928_2.png) [@Prats](https://community.bloomreach.com/u/Prats)\
**Post date:** [July 31, 2019, 2:34pm UTC](https://community.bloomreach.com/t/disable-the-input-text-field/1307/1 "2019-07-31T14:34:04Z")

</div>

Hi,

I have a document type with one input field which is String, wanted to disable the input field once the value is entered, it shouldn’t be editable , as I need some unique value for each document created using this document type.

Let’s say I have “Menu” document Type with Field “Unique Id”, I have created multiple documents using “Menu” with different content in each, in order to differentiate each document I want a unique value which shouldn’t be editable by users. I know we can go with UUID, but if document is deleted the UUID will be a new one and we cannot go with the hardcoded UUID.

I also tried adding property “mode” as “view” but this doesnt solve as it is same again if I create multiple documents with “menu”

Please suggest me any solution in order to achieve this.

---

<div class="post-metadata">

**Author:** ![woonsanko](https://avatars.discourse-cdn.com/v4/letter/w/b5a626/32.png) [@woonsanko](https://community.bloomreach.com/u/woonsanko)\
**Post date:** [July 31, 2019, 2:54pm UTC](https://community.bloomreach.com/t/disable-the-input-text-field/1307/2 "2019-07-31T14:54:23Z")

</div>

There’s no easy solution like simple configurations, but if you are with v13.2 or higher, you might want to implement an OpenUI Field Extension [1] for that specific field to have a full control of the field, as a _workaround_.

Just my two cents,

Woonsan

[1] [https://documentation.bloomreach.com/library/concepts/open-ui/open-ui-document-field-extensions.html](https://documentation.bloomreach.com/library/concepts/open-ui/open-ui-document-field-extensions.html)

---

<div class="post-metadata">

**Author:** ![jasper.floor](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jasper.floor/32/28_2.png) [@jasper.floor](https://community.bloomreach.com/u/jasper.floor)\
**Post date:** [August 1, 2019, 8:07am UTC](https://community.bloomreach.com/t/disable-the-input-text-field/1307/3 "2019-08-01T08:07:36Z")

</div>

You should be able to restrict editing on specific fields using domain rules on the wicket plugins in the namespace (/hippo:namespaces///editor:templates/_default_/). Though it might be that this won’t work in the editor integrated in the channel manager. You can use a derived data function or workflow event to populate the field. How you generate unique id’s is up to you.
