Get started
Contact

Start verifying your learners today.

Call us toll free at: 1.587.315.2999


Contact sales

sales@weknowtraining.ca

Contact us to signup, or request a demo.

Our customer support team is available between 9:00 am to 5:00 pm Mountain Time.

We are closed on statutory holidays and weekends.

Fields marked * are mandatory.

Please let us know a few details about your question or comment.

if (document.querySelector(“#contact-form”)) {
var urlParams = getUrlParams();

console.log(urlParams.url); // Print the current URL
console.log(urlParams.params); // Print an object containing the URL parameters

if (urlParams.params.success && urlParams.params.success === “true” && urlParams.params.ticket_id) {
var formContainer = document.querySelector(“#contact-form”);
var formMessage =

Thank you for submitting your message. Your ticket ID is: ‘ +
urlParams.params.ticket_id +
‘.

‘;

formContainer.insertAdjacentHTML(‘afterbegin’, formMessage);
} else {
// Do something if one or both parameters are missing
}
}

function getUrlParams() {
var urlParams = {};
var queryString = window.location.search;
if (queryString.length > 0) {
queryString
.slice(1)
.split(“&”)
.forEach(function (param) {
var keyValue = param.split(“=”);
urlParams[keyValue[0]] = decodeURIComponent(keyValue[1]);
});
}

return {
url: window.location.href,
params: urlParams,
};
}

function validateForm(form) {
var requiredFields = form.querySelectorAll(“[required]”);

var errorMessages = form.querySelectorAll(“.error-message”);
for (var i = 0; i < errorMessages.length; i++) {
errorMessages[i].remove();
}

var inputErrorFields = form.querySelectorAll(".has-error-message");
for (var i = 0; i < inputErrorFields.length; i++) {
inputErrorFields[i].classList.remove("has-error-message");
}

var errorSummary = form.querySelector(".error-summary");
if (errorSummary) {
errorSummary.remove();
}

var errorList = [];

for (var i = 0; i 0) {
var errorSummary = document.createElement(“div”);
errorSummary.classList.add(“error-summary”);
var errorListHTML = “”;
for (var i = 0; i < errorList.length; i++) {
var inputLabel = form
.querySelector("label[for='" + errorList[i].inputId + "']")
.textContent.trim()
.replace("*", "");
errorListHTML +=
"

  • ” +
    errorList[i].message +
    “: ” +
    inputLabel +
  • “;
    }
    errorSummary.innerHTML =

    ERROR: Please correct the following before continuing

      ” +
      errorListHTML +

    “;
    form.appendChild(errorSummary);
    return false;
    }

    return true;
    }

    var contactForm = document.querySelector(“.contact-form”);
    if (contactForm) {
    var form = contactForm.querySelector(“form”);
    form.setAttribute(“novalidate”, true);
    form.addEventListener(“submit”, function(event) {
    event.preventDefault();
    var noErrors = validateForm(form);

    if (noErrors) {
    var isCaptchaValidated = false;
    var response = grecaptcha.getResponse();

    if (response.length > 0) {
    isCaptchaValidated = true;
    }

    // Continue with form submission or other actions
    // …

    }
    });
    }