Disabling/Read-only field

Is there a way to set the input field to read-only while still having it to be displayed on the form? Currently I saw there's only the hidden setting but I can't set it to be disabled/read-only

Answers