Hello all,
I am trying to create a landing page to generate leads in my Creatio instance. However, despite matching the documentation and copying the code into my html from the landing page record, the page is not generating Creatio leads.
Keen360 Submit Page
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
Contact Us
Full name:
Company:
Email:
Phone number:
/**
* Replace the "css-selector" placeholders in the code below with the element selectors on your landing page.
* You can use #id or any other CSS selector that will define the input field explicitly.
* Example: "Email": "#MyEmailField".
* If you don't have a field from the list below placed on your landing, leave the placeholder or remove the line.
*/
var config = {
fields: {
"Name": "#fname", // Name of a visitor, submitting the page
"Email": "#email",
"MobilePhone": "#phone",// Visitor's email
"Company": "#cname" // Name of a company (for business landing pages)
},
landingId: "b95e7199-72e8-421d-8cac-dbd9ae45859f",
serviceUrl: "https://keen360.creatio.com/0/ServiceModel/GeneratedObjectWebFormServic…",
redirectUrl: "https://keen360.com/testing/keen360satisfaction.html"
};
/**
* The function below creates a object from the submitted data.
* Bind this function call to the "onSubmit" event of the form or any other elements events.
* Example:
*/
function createObject() {
landing.createObjectFromLanding(config)
}
/**
* The function below inits landing page using URL parameters.
*/
function initLanding() {
landing.initLanding(config)
}
function onSubmit() {
createObject();
console.log("onSubmit function was called");
$("#name").empty;
$("#email").empty;
$("#number").empty;
$("#company").empty;
}
jQuery(document).ready(initLanding)