I need users to use a JavaScript custom button to create a Case Comment because the button will also update the Case Status and also, change the Stopped field from TRUE to FALSE or vice versa (I'll create two buttons, one for each Stopped value).
Those additional field updates (which will be made by the JavaScript code, if possible) should only be made when a comment is added for a particular reason. The rest of the time, I don't want them to be made.
I want to use a button so that it can be added to the Case page layout, where it is more visible than a tick box. The other issue with a tick box (which seems like the most obvious alternative) is that the user would need to remember to tick it before adding the comment.
But I can't find any examples of JavaScript code which create a Case Comment. Is this possible?