Skip to main content

Posts

Showing posts from September, 2021

D365 portal get date field value into java script

 If you want to date field value into custom java script. You can use this script. $(document).ready(function(){ var CurrentDate = new Date(); var stdregistrationclosedatetime = $("#stdregistrationclosedatetime").datepicker({ dateFormat: 'dd,MM,yyyy' }).val(); var registrationclosedatetime = new Date(stdregistrationclosedatetime) if(CurrentDate>registrationclosedatetime){ $("#UpdateButton").hide(); } });

D365 portal Custom Javascript is not working into Profile web page

I am trying to add custom JavaScript into Profile web page but it is not working. I also try to switch content page but that is also not working, it shows disable. Solution: Click related and web page. select web page and add your script.

D365 portal Error: Incorrect contents fetched, please reload

 The error is coming from your custom java script when you click submit button. I my case i was using webFormClientValidate but forgot to return true because it always expect return true if not false. window.webFormClientValidate = function () { // your validation logic return true; }; For your case please check your custom java script code and find out that you miss anything to return or not.