How to hide the option to save mail as private comment in send mail task
This is the code that I'm using in the custom.js file but it isn't working:
app.custom.formTasks.add('Incident', null, function (formObj, viewModel) {
formObj.boundReady(function () {
$(".link[data-bind*=sendEmail]").on("click", function () {
$("#actionLogisPrivate").hide();
});
});
});
Does anyone have suggestions on how I can hide the checkbox to save a mail as a private comment?
Thanks!
Best Answer
-
Shane_White Cireson Support Super IT Monkey ✭✭✭✭✭Hi @Florian_Steinbach
So I changed the databind it was pointing to one the click function and added a timeout which seems to have worked. You can change the timeout accordinglyapp.custom.formTasks.add('Incident', null, function (formObj, viewModel) {formObj.boundReady(function () {$(".link[data-bind*=sendEmail]").on("click", function () {setTimeout(function() {$('[data-bind="visible: addToLog"]').hide();},1000);});});});
Let me know what you think!
Thanks,
Shane.6
Answers
So I changed the databind it was pointing to one the click function and added a timeout which seems to have worked. You can change the timeout accordingly
Let me know what you think!
Thanks,
Shane.
What version of the portal are you on? Can you send a screenshot of what you're showing?
Thanks,
Thanks Shane, that did it for me.