To set parent_incident field read-only
I got a requirement to make parent_incident field Read only when a form is saved on resolved stateFor this I wrote a onload script but not workedScript:-If(g_form.getValue('state')==6){g_form.setReadonly('parent_incident', true)}