Can I make a field type read only in admin ui?

Topics: Core, General
Jul 9, 2015 at 4:44 PM
Hi,

If I create a field (text or bool etc), how can I make it read only?

The reason is that I have some custom workflows and the value is basically calculated base on some values the customers save and some external database values.

Seems can't find a read only field type.

Many Thanks
Developer
Jul 9, 2015 at 5:04 PM
Orchard doesn't have the notion of a readonly content field. You'd have to implement your own content fields or parts to achieve that.
Jul 9, 2015 at 5:16 PM
realised I could add some function in javascript to find my input field with id like "XXXX-field-shouldbereadonly" and read only them.
Developer
Jul 9, 2015 at 5:42 PM
Yep, there's always that. :-)