diff --git a/static/js/main-new.js b/static/js/main-new.js index 33fc23e..98feb74 100644 --- a/static/js/main-new.js +++ b/static/js/main-new.js @@ -212,7 +212,7 @@ $.ajax(settings).done(function (response) { "Content-Type": "application/json" }, "processData": false, - "data": "{\r\n \"data\": {\r\n \"type\": \"Contacts\",\r\n \"id\": \"" + uid + "\",\r\n \"attributes\": {\r\n \"first_name\":\"" + first_name + "\",\r\n \"email1\":\"" + email + "\"\r\n,\r\n \"lead_source\":\"Web Site\"\r\n,\r\n \"title\":\"" + patientdetails + "\"\r\n,\r\n \"account_id\":\"aba27ce2-d758-bdeb-adef-5da4294bf9e8\"\r\n }\r\n }\r\n}\r\n" + "data": "{\r\n \"data\": {\r\n \"type\": \"Contacts\",\r\n \"id\": \"" + uid + "\",\r\n \"attributes\": {\r\n \"first_name\":\"" + first_name + "\",\r\n \"email1\":\"" + email + "\"\r\n,\r\n \"lead_source\":\"Web Site\"\r\n,\r\n \"title\":\"" + patientdetails + "\"\r\n,\r\n \"account_id\":\"c548fc60-389f-8f5b-5ecb-64cce0924678\"\r\n }\r\n }\r\n}\r\n" } $.ajax(settings).done(function (response) { @@ -234,7 +234,7 @@ $.ajax(settings).done(function (response) { var settings = { "async": true, "crossDomain": true, - "url": "https://devl-crm.unblock.health/legacy/Api/V8/module/Accounts/aba27ce2-d758-bdeb-adef-5da4294bf9e8/relationships", + "url": "https://devl-crm.unblock.health/legacy/Api/V8/module/Accounts/c548fc60-389f-8f5b-5ecb-64cce0924678/relationships", "method": "POST", "headers": { "Accept": "application/vnd.api+json", @@ -285,7 +285,7 @@ $('#contact-submit-live').prop('disabled', 'disabled'); e.preventDefault(); var recaptchaResponse=''; var recaptcha_response = verifyCallback3; - //console.log(recaptcha_response); + console.log(recaptcha_response); var uid = uuidv4(); var first_name = $('#quickname').val(); var email = $('#quickemail').val(); @@ -361,7 +361,7 @@ $('#contact-submit-live').prop('disabled', 'disabled'); "lead_source": "Web Site", "title": "GEN", "description": description, - "account_id": "aba27ce2-d758-bdeb-adef-5da4294bf9e8" + "account_id": "c548fc60-389f-8f5b-5ecb-64cce0924678" } } })