literal field type (v2021)

Hello
Is there any way to make field type (literal) in v21?
I mean it can take a value (from expression or default value) and show in (view , edit) pages without ability of edit.
thanks

You can set the field to ReadOnly in Page_* server events. For example:Field.ReadOnly = true;

Is the same (readonly) in edit page ?
if yes , so it will make field literal but with not saving the data.
i need to saving this data

MichaelG wrote:

You can set the field to ReadOnly in Page_* server events. For example:> Field.ReadOnly = true;

its been literal but not saving the data.

For edit page, you can simply enable the Read Only option (under Fields → Edit Page → Read Only).