To set parent_incident field read-only

Subham_
Tera Contributor

I got a requirement to make parent_incident field Read only when a form is saved on resolved state

For this I wrote a onload script but not worked

Script:-

If(g_form.getValue('state')==6){

g_form.setReadonly('parent_incident', true)

}

5 REPLIES 5

its not worked