SendEmail - Populate 'Add Message to action Log'
Hi,
I have a customer who would like the check box 'Add Message to Action Log' to be checked by default. I've looked at the controller.js file in C:\Inetpub\CiresonPortal\Scripts\Tasks\SendEmail. You can change the addtolog: false; to true but this doesn't achieve the desired result.
Is there a way of implementing this?
Thanks
Steve
Best Answers
-
merlenette_jones Member Advanced IT Monkey ✭✭✭Steve_Barnard said:
Hi,
I have a customer who would like the check box 'Add Message to Action Log' to be checked by default. I've looked at the controller.js file in C:\Inetpub\CiresonPortal\Scripts\Tasks\SendEmail. You can change the addtolog: false; to true but this doesn't achieve the desired result.
Is there a way of implementing this?
Thanks
Steve
The current functionality is by design. I would suggest submitting a feature request to gain the added functionality you seek.
https://community.cireson.com/entry/jsconnect?client_id=1058377313&Target=/categories/feature-requests
Merle5 -
Geoff_Ross Cireson Consultant O.G.Hey Steve,
Bung this in custom.js. It also ticks the change status box on IRs but remove that bit if not needed./* ----------------------------------------------- */ /* ------------ Send Email Tick Boxes ------------ */ /* ----------------------------------------------- */ // v5.1.0.1 app.custom.formTasks.add('Incident', null, function (formObj, viewModel) { //bind a function to the form ready event formObj.boundReady(function () { $(".link[data-bind*=sendEmail]").on("click", function () { $("#IsAddToLog").trigger("click").closest("div").hide(); $("#ChangeStatusToPending").trigger("click").closest("div").hide(); }); }); }); app.custom.formTasks.add('ServiceRequest', null, function (formObj, viewModel) { //bind a function to the form ready event formObj.boundReady(function () { $(".link[data-bind*=sendEmail]").on("click", function () { $("#IsAddToLog").trigger("click").closest("div").hide(); }); }); }); app.custom.formTasks.add('ChangeRequest', null, function (formObj, viewModel) { //bind a function to the form ready event formObj.boundReady(function () { $(".link[data-bind*=sendEmail]").on("click", function () { $("#IsAddToLog").trigger("click").closest("div").hide(); }); }); }) /* ----------------------------------------------- */ /* ---------- End Send Email Tick Boxes ---------- */ /* ----------------------------------------------- */
8
Answers
The current functionality is by design. I would suggest submitting a feature request to gain the added functionality you seek.
https://community.cireson.com/entry/jsconnect?client_id=1058377313&Target=/categories/feature-requests
Merle
Bung this in custom.js. It also ticks the change status box on IRs but remove that bit if not needed.
Hi Geoff,
This code actually removes the two check boxes. I guess the .hide parameter is doing this? Which bit of code do I need to change/remove to stop that from happening?
Glad to help.