Created
February 5, 2020 13:07
-
-
Save tombola/971d67ef5bb53f1cb2cebd79c46066b6 to your computer and use it in GitHub Desktop.
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
<script src="https://rca.accessplanit.com/accessplansandbox/NetLibrary/ClientScripts/webintegration.js"></script> | |
<script type="text/javascript"> | |
console.log('script ran') | |
var courseOptions = { | |
ListID: 'courses', | |
CourseIDs: [731014], | |
CompanyID: "ROYALC9RCH", | |
CategoryIDs: [] | |
} | |
var opportunityOptions = { | |
OwnerID: "", | |
Title: "Online Enquiry", | |
Forename: "", | |
Surname: "", | |
Email: "", | |
Phone: "", | |
Mobile: "", | |
Address: "", | |
Town: "", | |
County: "", | |
Country: "", | |
Postcode: "", | |
CompanyName: "", | |
CompanyEmail: "", | |
CompanyPhone: "", | |
CompanyAddress: "", | |
CompanyTown: "", | |
CompanyCounty: "", | |
CompanyCountry: "", | |
CompanyPostcode: "", | |
CompanyGroupID: "", | |
CompanyGroupName: "", | |
IndustryName: "", | |
CourseTemplateID: "", | |
AdditionalInformation: "", | |
MarketingOptIn: "" | |
} | |
document.addEventListener("DOMContentLoaded", function (e) { | |
console.log('doc loaded') | |
CourseManager.coursesTable(courseOptions); | |
EnquiryManager.getCourses(courseOptions); | |
debugger; | |
console.log(typeof xdomain) | |
}); | |
function createEnquiry() { | |
// ssign opportunityOptions from your form. | |
EnquiryManager.createOpportunity(opportunityOptions, function (data) { | |
$("#message").html("Enquiry successfully sent."); | |
}, function (data) { | |
$("#message").html(data.statusText); | |
}); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment