Setting 'readOnly':true on a form field definition

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2016 03:49 PM
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
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
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2016 04:11 AM
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.
If so, you could have two properties … one for display and one for edit and use visibility conditions.
