Skip to content

Instantly share code, notes, and snippets.

@tombola
Created February 5, 2020 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tombola/971d67ef5bb53f1cb2cebd79c46066b6 to your computer and use it in GitHub Desktop.
Save tombola/971d67ef5bb53f1cb2cebd79c46066b6 to your computer and use it in GitHub Desktop.
<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