Read-only, But Display On

Hello,

I have a document with workflow states like “Open”, “Active”, “Editing”. At “Open” state all the fields will be writable. At “Active” state no fields will be writable/editable and the display will be on, even if the field is null/empty. Again at “Editing” state all the fields will be editable. In all the states, I am keeping docstatus =0. The doc is not submittable.

What I want is:

  1. All the fields will be shown at all the states, regardless of read-only true or false.
  2. Make all the fields read-only with a single code during stage change to “Active”. And make all the fields editable during stage change to “Editing”.

TIA

possible using the client script. so you have to apply the logic according to the scenario.

Please help with a code at least for one field.

Please check the reference:

Sorry, I missed to write complete requirement. Now, it has been updated with “and the display will be on, even if the field is null/empty.”.