- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2018 08:01 AM
We have a requirement to add a pop-up confirmation message when saving a change task to complete. We are not using an UI Action button for the close task but instead saving from the state field choice list. I was able to accomplish the alert pop-up through a client script but I need them to be able to select 'Yes' or 'No'. If no is selected, then the change task will not save. Thanks in advance for your assistance.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2018 08:57 AM
Thank you all. I was also able to accomplish my desired results with this onSubmit client script.
function onSubmit() {
var state = g_form.getValue('state');
if((state == 3) || (state == 4) || (state == 7)){
return confirm('Are you sure you want to close this task?');
}
if(state == 6){
return confirm('Are you sure you want to cancel this task?');
}
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2019 11:41 AM
Heathers, I am using your script to solve an issue however I would like this to apply to only a particular assignment group (ITPMO).
On your script how can I also check if current assignment group = ITPMO