how to present field content as read only

how to present field content as read only

by einat dagan -
Number of replies: 2

I have one view in which the teacher edit submission date and comments of entry.

In the other view the student should see these comments and submission date in readonly mode and in the same view he should be able to submit files.

I cannot find how to present field content(date, textarea, select) in one view as editable and in other view as read only.


help with that would be appreciate.

thanks,

Einat.


Average of ratings: -
In reply to einat dagan

Re: how to present field content as read only

by Hartmut Scherer -

Hi Einat,

You can prevent editing with adding an exclamation mark right after the opening brackets. 

E.g., for field "Upload your assignment"

prevent editing









With kind regards,

Hartmut

In reply to einat dagan

Re: how to present field content as read only

by Itamar Tzadok -

In addition to Hartmut's suggestion, if the field is for teacher use only you can set it to not-editable (locked) in the field's configuration. Then you do not need to pattern ! flag and only teachers will be able to edit its content. hth smile