How to restrict state changes of task which is in related list tab from case form
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2024 06:06 AM
From case form i am able to change the task state to close even though the task closure code is mandatory, how can i abort it and show fill mandatory field and then close the task
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2024 06:33 AM
Hi @mansa12 ,
Write a onSubmit client script in the table
Code is:
if(state == 3)//change the state value to closed complete value in your table
{
g_form.setMandatory('closure_code',true);//backend name of your closure code field
alert('Fill mandatory field and then close the task');
return false;
}
Please mark my answer correct/helpful if it resolved your query.