Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: RE: Editing "readonly" attribute of structure fields
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"
},
Feature Request Created: https://liferay.atlassian.net/browse/LPS-193576
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.
Powered by Liferay™