function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Keith Stephens 18Keith Stephens 18 

RequireScript Undefined in OnClick Javascript

Hello All,
Our Development environment is on Winter 18, and I had this onclick javascript code working yesterday 2/72018 and now today I am getting the javascript error of:
RequireScript Undefined.  Can anyone help me out.

{ !REQUIRESCRIPT("/soap/ajax/40.0/connection.js") }
{ !REQUIRESCRIPT("/soap/ajax/40.0/apex.js") }

var documentCode = 'ATTYFAX_001';
var userName = '{!$User.Username}';

var result = sforce.apex.execute("DocuSendPostCaseInfo", "PostCaseInfo", { CaseNumber: '{!Case.CaseNumber}', DocumentCode: documentCode, UserName: userName });

alert(result);

Thanks,
KS