Make Short Description & Description Read only on submit of incident form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2022 12:25 AM
Hello All
Make Short Description & Description Read only on submit of incident form
Plz let me know how to do it.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2022 12:28 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2022 12:31 AM
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);
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2022 12:33 AM
Not sure if I understand correctly.
OnSubmit does this mean post submission fields to be read-only or something else is expectation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2022 12:35 AM
Yes On the on submit of form.
The Short Description & Description should be Read Only