How to make Risk Assessment fields Read-Only?

Khuzaima
Tera Contributor

Hello Everyone!

My requirement is to make the Risk Assessment fields read only when the change request state is Authorize, Waiting to Deploy, In Progress, Review, and Closed. The Risk Assessment should be editable in Draft and Assess which it is already doing because the UI Action is available regardless of states. So when the change manager or the assigned to person clicks on Risk Assessment UI Action, the fields should be read only except in Draft and Assess. Any ideas on how I would go about doing this?

When the Risk Assessment is clicked, it doesn't redirect the page to another table so UI Policies would not work in this case. I have been looking around at the ChangeRiskAsmtAjax Script Include and the change_risk_completed_asmt_dialog UI Page but can't seem to figure out how to set the fields to read-only in certain states because the scripts are using GlideAjax.

Any help will be appreciated. Thanks!

1 ACCEPTED SOLUTION

ok, misread the question. Once the assessment is completed, you can click on the assessment and view the users answers, in read-only mode:

find_real_file.png

find_real_file.png

 

View solution in original post

4 REPLIES 4

Michael Fry1
Kilo Patron

Why can't it be read-only in all states since the Risk Assessment & Risk Conditions are determining the value? no reason for it to be read-only in some states.

The Risk Assessment Questionaire is built with 10 questions which the change manager and the assigned to person should be able to fill out in Draft or Assess. Afterwards, they still want to be able to see the answers they selected but it should be read only.

ok, misread the question. Once the assessment is completed, you can click on the assessment and view the users answers, in read-only mode:

find_real_file.png

find_real_file.png

 

Perfect. That works like a charm. Thanks!