To restrict attachment on incident from, once state is closed or resolved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2017 01:59 AM
Hi All,
I want to restrict users from attaching files on incident form, once incident is closed or resolved.
Kindly provide your input on this.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2017 02:30 AM
Hi Pratik,
You can use Onload client script with below mentioned code.
var status = g_form.getValue('state');
if(status=='6'||status=='7') // state 6 for resolved and 7 is for closed
{
$('header_attachment_list_label').style.display = 'none'; //This line will disable the option to add new attachment if some attachment already attached with incident
g_form.disableAttachments(); //This line will disable the attachment from .
}
Hope this helps.
Regards,
Ujjawal