Caller, Short description and description showing read only after incident creation.

ashok17
Tera Contributor

Hi All,

 

Issue was while creating incident the caller , Short description and description showing automatically read-only.

Please suggest for this issue how to resolve.

1 ACCEPTED SOLUTION

@ashok17  , 

 

I Assume some UI Policy is Making this Fields Read-only or Same ACL's running on that Field

 

Write this in UI Policy Script and Make Order to 1000 

 if (!g_form.isNewRecord())

    g_form.setReadonly('description', false);

    g_form.setReadonly('short_description', false);

    g_form.setReadonly('caller_id', false);

 

Regards,

Shyamkumar 

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

View solution in original post

7 REPLIES 7

Dictionary configuration checked not selected read-only check box

tried this script for editable for caller and short description and description but not works for me

 

 if (!g_form.isNewRecord())

    g_form.setReadonly('description', false);

    g_form.setReadonly('short_description', false);

    g_form.setReadonly('caller_id', false);

@ashok17  , 

 

I Assume some UI Policy is Making this Fields Read-only or Same ACL's running on that Field

 

Write this in UI Policy Script and Make Order to 1000 

 if (!g_form.isNewRecord())

    g_form.setReadonly('description', false);

    g_form.setReadonly('short_description', false);

    g_form.setReadonly('caller_id', false);

 

Regards,

Shyamkumar 

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

Service_RNow
Mega Sage

Hi @ashok17 

Use this in your onLoad client script

if(!g_form.isNewRecord())

  g_form.setReadonly('description',false);

g_form.setReadonly('short_description',false);

g_form.setReadonly('caller_id',false);

 

Also needs to be write ACL check a write ACL on the description, caller and Short Description field to do this.

Your ACL can use a script (check the advanced checkbox)

answer=current.isNewRecord();

If the record is new, it returns true which means you can write to the field. If it is an existing field, then it returns false, which means you cannot write to the field.

 

Please Hit like, Helpful or Correct depending on the impact of the response