cancel
Showing results for 
Search instead for 
Did you mean: 

Setting 'readOnly':true on a form field definition

bbob1
Champ in-the-making
Champ in-the-making
I'm using the Form designer in Activiti Enterprise 1.4.3. I would like to set the existing "readOnly" property on the form definition ("readOnly": true ) when adding a “Multiline Text” field to a form. In this case, the form will be rendered outside of Activiti. The use case requires the ability to toggle the readonly functionality on/off in the UI which requires a field that can support editing. Using the provided "Display value" field type (in the Forms designer) to render the field as strictly read only is not acceptable.

I do not see how to set the readOnly property in 1.4.3 version of the Forms designer. I could set it "manually" as a work around. How would I accomplish this in a way that is preserved when using the Forms designer. i.e. not overriden by round-tripping in the Forms designer?

Thanks,
Bob
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
Not sure if I'm 100% following here: you want a multi line text form property … but not be able to change it?

If so, you could have two properties … one for display and one for edit and use visibility conditions.