# Dynamic disabling of fields

**URL:** <https://techcommunity.softwareag.com/t/dynamic-disabling-of-fields/57587>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Application-Composer\
**Created:** [February 8, 2007, 8:43pm UTC](https://techcommunity.softwareag.com/t/dynamic-disabling-of-fields/57587 "2007-02-08T20:43:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ingo\_Oellers](https://avatars.discourse-cdn.com/v4/letter/i/ed8c4c/32.png) [@Ingo\_Oellers](https://techcommunity.softwareag.com/u/Ingo_Oellers)\
**Post date:** [February 8, 2007, 8:43pm UTC](https://techcommunity.softwareag.com/t/dynamic-disabling-of-fields/57587/1 "2007-02-08T20:43:47Z")

</div>

Hello,

create a boolean property and connect it with “displayonly” of the TEXT-component.

Eventually you have to reload/refresh your page.

Regards  
I.

---

<div class="post-metadata">

**Author:** ![Martin\_Grumann](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@Martin\_Grumann](https://techcommunity.softwareag.com/u/Martin_Grumann)\
**Post date:** [November 27, 2006, 7:16am UTC](https://techcommunity.softwareag.com/t/dynamic-disabling-of-fields/57587/2 "2006-11-27T07:16:12Z")

</div>

…in addition to the FIELD’s VALUEPROP (that provides for the display text) know use…

- STATUSPROP

…to control the field display status. Your status property is of type String and returns one of the available CS\_\* constants…

- CS\_EDIT (the default status)  
CS\_DISPLAY ==\> field is disabled  
CS\_ERRORR ==\> field shows a red background color  
CS\_…

The CS\_\* constants are available within your page adapter. At any other place access them like…

- IControlStatusConstants.CS\_\*

Martin

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:38pm UTC](https://techcommunity.softwareag.com/t/dynamic-disabling-of-fields/57587/3 "2021-04-02T14:38:44Z")

</div>


