Hello Team!
Is possible to change the logic of this panel to prevent complete the activity if the start date is in the future?
Like
3 comments
19:21 Sep 30, 2021
Solved changing this function in the ActivityPageV2
canChangeStatus: function() { var CurrentDarte = new Date(); return this.get("IsEntityInitialized") && !this.isFinalStatus() && this.isViewMode() && this.get("StartDate") < CurrentDarte && !this.get("ActivityMiniPageStatus"); }
12:19 Oct 01, 2021
Nice finding, Frederico!
This should also work on the Account and Contact page, where the "complete" button for Activities is also displayed (in the top area of the main mask), right? Do you have a code example for this, too?
BR,
Robert
17:29 Oct 20, 2021
Robert Pordes,
I dont have a example of that code but must be very similar. Check in the code what function is calling the click.
Show all comments