Set state field to read only for a new Incident

StewartF
Tera Expert

So, we've noticed an issue where, when creating an incident, if the state field is changed before the form is submitted/saved, the SLA timer doesn't actually start. Meaning we have had P2's technically breach the SLA, but reporting shows that it's actually made the SLA.

I've narrowed this down to ITIL users changing the state field to Active before the form is saved.

What I want to try and do it set 'state' to read only until the form has actually been submitted. Once it has, it can then be editable again.

I believe this would be best as a UI Policy rather than a Client Script?

Due to not being very clued up on scripting yet, I've been trying the standard way of setting fields, but nothing is working. Would anybody know the right script to use to make it work?

Any help would be greatly appreciated!

1 ACCEPTED SOLUTION

Hi Straut,

The UI policy provided by @Asif will work, just add a condition in the condition field as -  State : is : New and Make Reverse If false True/Checked.

Regards,
Ajay

View solution in original post

18 REPLIES 18

Kindly check the client script that i shared below. This should work for you.

Mark the answer as correct if this answers.

Hi Straut,

The UI policy provided by @Asif will work, just add a condition in the condition field as -  State : is : New and Make Reverse If false True/Checked.

Regards,
Ajay

It's not quite what I was aiming for, but it does what we need with the condition added in.

good to hear.

Kindly mark the answer as helpful.

If my solution has helped you, kindly mark my comment as a helpful and correct answer.