This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //below function calculates the contract end date and allows the date to be overriden if required. | |
| function calculateContractEnd() | |
| { | |
| //Check if the override date radio button is selected | |
| if(Xrm.Page.data.entity.attributes.get('s00_overrideenddate').getValue()) | |
| { | |
| //Enable field to allow it to be overwritten | |
| Xrm.Page.ui.controls.get("s00_contractenddate").setDisabled(false); | |
| } | |
| else |