RE: Editing "readonly" attribute of structure fields

Jamie Sammons, modified 2 Years ago. New Member Posts: 7 Join Date: 8/21/20 Recent Posts

We would like use the attribute "readOnly" of structure fields (which exists in the json) from the structure create/edit form, like a boolean field.

 

 "fields": [
        {
            "label": {
                "en_US": "Name"
            },
            "predefinedValue": {
                "en_US": ""
            },
            "style": {
                "en_US": ""
            },
            "tip": {
                "en_US": ""
            },
            "dataType": "string",
            "indexType": "text",
            "localizable": true,
            "name": "name",
            "readOnly": false,
            "repeatable": false,
            "required": true,
            "showLabel": true,
            "type": "text"
        },

thumbnail
Jamie Sammons, modified 2 Years ago. Expert Posts: 367 Join Date: 9/5/14 Recent Posts

Feature Request Created: https://liferay.atlassian.net/browse/LPS-193576

Jamie Sammons, modified 2 Years ago. New Member Posts: 7 Join Date: 8/21/20 Recent Posts

Thanks Jamie Sammons.

I see Mateo Hermosin's question (in LPS-193576), and I can tell you that we need this functionality to programmatically assign values, but we need users not to edit this value.

Thanks again.