Make Short Description & Description Read only on submit of incident form

keval3
Tera Contributor

Hello All

Make Short Description & Description Read only on submit of incident form

Plz let me know how to do it.

10 REPLIES 10

Jaspal Singh
Mega Patron
Mega Patron

Hi,

 

Why not simply create a UI Policy as below

Created | is not empty

Add required Short Description & Description to be Read-only True by adding it to UI Policy actions.

Refer link for example on creating UI Policy.

Hi Jaspal

I want Both Fields Readonly on submit of form

I have written below client script but it's not working

function onSubmit() {
//Type appropriate comment here, and begin script below
g_form.setReadOnly('short_description', true);
g_form.setReadOnly('description', true);

}

Not sure if I understand correctly.

OnSubmit does this mean post submission fields to be read-only or something else is expectation.

Yes On the on submit of form.

The Short Description & Description should be Read Only