{"id":11241,"date":"2023-09-12T05:56:36","date_gmt":"2023-09-12T05:56:36","guid":{"rendered":"https:\/\/www.afiniti.com\/?post_type=industries&#038;p=11241"},"modified":"2026-01-05T16:19:06","modified_gmt":"2026-01-05T16:19:06","slug":"insurance-form","status":"publish","type":"industries","link":"https:\/\/staging.afiniti.com\/industries\/insurance-form\/","title":{"rendered":"Insurance form"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"11241\" class=\"elementor elementor-11241\" data-elementor-post-type=\"industries\">\n\t\t\t\t<div class=\"elementor-element elementor-element-1fc31373 insurance e-flex e-con-boxed e-con e-parent\" data-id=\"1fc31373\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-62c1bb60 e-con-full e-flex e-con e-child\" data-id=\"62c1bb60\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-28b3797d elementor-widget elementor-widget-heading\" data-id=\"28b3797d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h1 class=\"elementor-heading-title elementor-size-default\">Unlock the Future of Insurance with CX AI<\/h1>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\n<!-- Javascript -->\n\n<script type='text\/javascript'>\n  let originalPath = window.location.pathname;\n\n  function openVideo(videoUrl, deep_link) {\n    const overlay = document.getElementById('videoOverlay');\n    const iframe = document.getElementById('videoIframe');\n    const autoplayUrl = `${videoUrl}`;\n    iframe.src = autoplayUrl;\n    iframe.allow = \"autoplay\"\n    overlay.style.display = 'flex';\n    document.body.style.overflow = 'hidden';\n\n    video_history_push_pop(deep_link);\n    \n  }\n\n  function closeVideo() {\n    const overlay = document.getElementById('videoOverlay');\n    const iframe = document.getElementById('videoIframe');\n    iframe.src = '';\n    overlay.style.display = 'none';\n    document.body.style.overflow = '';\n    video_history_push_pop('');\n  }\n\n  function getYouTubeEmbedUrl(url) {\n    \/\/ Our regex pattern to look for a youTube ID\n    const regExp = \/^.*(youtu.be\\\/|v\\\/|u\\\/\\w\\\/|embed\\\/|watch\\?v=|&v=)([^#&?]*).*\/;\n    \/\/Match the url with the regex\n    const match = url.match(regExp);\n    \/\/Return the result\n    const videoId = match && match[2].length === 11 ? match[2] : undefined;\n    if (videoId) {\n      return 'https:\/\/www.youtube.com\/embed\/' + videoId + '?autoplay=1';\n    }\n    else {\n      return undefined\n    }\n  };\n  function getVimeoEmbedUrl(url) {\n    \/\/ Look for a string with 'vimeo', then whatever, then a\n    \/\/ forward slash and a group of digits.\n    const match = \/vimeo.*\\\/(\\d+)\/i.exec(url);\n    \/\/ If the match isn't null (i.e. it matched)\n    if (match) {\n      \/\/ The grouped\/matched digits from the regex\n      return 'https:\/\/player.vimeo.com\/video\/' + match[1] + '?autoplay=1';\n    }\n    else {\n      return undefined;\n    }\n  };\n\n  function video_history_push_pop(deep_link) {\n    console.log(deep_link);\n    if (deep_link != '') {\n      const newUrl = \"\/video\/\" + deep_link; \n      history.pushState({ video: true }, \"\", newUrl);\n    } else {\n      history.pushState({}, \"\", originalPath);\n    }\n  }\n<\/script>\t\t<div class=\"elementor-element elementor-element-171ac8a elementor-widget elementor-widget-text-editor\" data-id=\"171ac8a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Please provide the information below, to download the whitepaper.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-308626da elementor-widget elementor-widget-html\" data-id=\"308626da\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"contact-us-form insurance-form\">\n  <form id=\"contact-us-insurance\" action=\"https:\/\/formspree.io\/f\/mgvwwqrz\" method=\"POST\">\n    <div class=\"row\">\n      <!-- <input type=\"hidden\" name=\"Product Reference\" class=\"product_ref\" value=\"\" \/> -->\n      <div class=\"form-column\">\n        <p><label> Name* <\/label><\/p>\n        <div class=\"field\">\n          <p>\n            <span class=\"form-control-wrap\" data-name=\"full-name\">\n              <input class=\"fs-form-control input-text\" autocomplete=\"name\" id=\"cf-name\" aria-required=\"true\"\n                aria-invalid=\"false\" placeholder=\"Name*\" value=\"\" type=\"text\" name=\"name\" required>\n                    \n\n            <\/span>\n          <\/p>\n        <\/div>\n      <\/div>\n      <div class=\"form-column\">\n        <p><label> Surname <\/label><\/p>\n        <div class=\"field\">\n          <p>\n            <span class=\"form-control-wrap\" data-name=\"surename\">\n              <input class=\"fs-form-control input-text\" autocomplete=\"name\" id=\"cf-surename\" aria-required=\"true\"\n                aria-invalid=\"false\" placeholder=\"Surname*\" value=\"\" type=\"text\" name=\"surename\" required>\n                    \n\n            <\/span>\n          <\/p>\n        <\/div>\n      <\/div>\n      <div class=\"form-column\">\n        <p><label> Company <\/label><\/p>\n        <div class=\"field\">\n          <p>\n            <span class=\"form-control-wrap\" data-name=\"company\">\n              <input class=\"fs-form-control input-text\" autocomplete=\"name\" id=\"cf-company\" aria-required=\"true\"\n                aria-invalid=\"false\" placeholder=\"Company*\" value=\"\" type=\"text\" name=\"company\" required>\n                    \n\n            <\/span>\n          <\/p>\n        <\/div>\n      <\/div>\n    <\/div>\n    <div class=\"row\">\n      <div class=\"form-column\">\n        <p><label> Job Title <\/label><\/p>\n        <div class=\"field\">\n          <p>\n            <span class=\"form-control-wrap\" data-name=\"job-title\">\n              <input class=\"fs-form-control input-text\" autocomplete=\"name\" id=\"cf-job-title\" aria-required=\"true\"\n                aria-invalid=\"false\" placeholder=\"Job Title*\" value=\"\" type=\"text\" name=\"job-title\" required>\n                    \n\n            <\/span>\n          <\/p>\n        <\/div>\n      <\/div>\n      <div class=\"form-column\">\n        <p><label> Email <\/label><\/p>\n        <div class=\"field\">\n          <p>\n            <span class=\"form-control-wrap\" data-name=\"email-address\">\n              <input class=\"fs-form-control email input-text\" id=\"cf-email\" autocomplete=\"email\" aria-required=\"true\"\n                aria-invalid=\"false\" placeholder=\"Email*\" value=\"\" type=\"email\" name=\"email\" required \/>\n                    \n\n            <\/span>\n          <\/p>\n        <\/div>\n      <\/div>\n      <div class=\"field button-wrap text-left\">\n        <input type=\"hidden\" id=\"g-recaptcha-response\" name=\"g-recaptcha-response\" \/>\n        <button class=\"fs-submit-button download-btn\" id=\"submit-button\" type=\"submit\">\n          Download now\n          <span class=\"iconarrow\">\n            <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" width=\"19.458\"\n              height=\"24.817\" viewBox=\"0 0 19.458 24.817\">\n              <defs>\n                <clipPath id=\"a\">\n                  <rect width=\"19.458\" height=\"24.817\" fill=\"#FFFFFF\" \/>\n                <\/clipPath>\n              <\/defs>\n              <g transform=\"translate(0 0)\">\n                <g transform=\"translate(0 0)\" clip-path=\"url(#a)\">\n                  <path\n                    d=\"M8.842,12.366l1.251-1.325,5.071,5.069V0H17.1V15.927l4.957-4.98L23.4,12.4l-7.265,7.247-7.3-7.278\"\n                    transform=\"translate(-6.408 -0.001)\" fill=\"#FFFFFF\" \/>\n                  <rect width=\"19.458\" height=\"1.837\" transform=\"translate(0 22.98)\" fill=\"#ffffff\" \/>\n                <\/g>\n              <\/g>\n            <\/svg>\n          <\/span>\n        <\/button>\n      <\/div>\n    <\/div>\n    <div class=\"row\">\n      <label class=\"acceptance-wrap\">\n        <span class=\"acceptance-checkbox\"><input type=\"checkbox\" name=\"acceptance_option\" value=\"yes\" \/>\n        <\/span>\n        I AGREE TO RECEIVE OTHER COMMUNICATIONS FROM AFINITI.\n      <\/label>\n    <\/div>\n    <div class=\"row\">\n      <p class=\"policy-text\">\n        You can unsubscribe from these communications at any time. For more\n        information on how to unsubscribe, our privacy practices, and how we are\n        committed to protecting and respecting your privacy, please review our\n        <a href=\"https:\/\/staging.afiniti.com\/\/legal\/privacy-policy\/\">Privacy Policy<\/a>. By clicking submit below, you\n        consent to allow Afiniti to store and\n        process the personal information submitted above to provide you the\n        content requested.\n      <\/p>\n    <\/div>\n  <\/form>\n  <div id=\"contact-us-sales-status\"><\/div>\n  <a id=\"pdf-download\" style=\"display: none;\"\n    href='https:\/\/staging.afiniti.com\/\/wp-content\/uploads\/2024\/07\/Afiniti-Whitepaper_Insurance.pdf'\n    class=\"cta-wrapper theme-dark is-small-button\" rel=\"noreferrer\" download>Download\n    a pdf<\/a>\n<\/div>\n\n  <style>\n  .input-text.error {\n    border-bottom: 1px solid #C93012 !important;\n  }\n  <\/style>\n\n<script>\nconst submitButton = document.getElementById('submit-button');\nsubmitButton.addEventListener('click', downloadPDF);\n\nfunction downloadPDF(event) {\n  const fields = [\n    { id: 'cf-name', value: document.getElementById('cf-name').value },\n    { id: 'cf-surename', value: document.getElementById('cf-surename').value },\n    { id: 'cf-company', value: document.getElementById('cf-company').value },\n    { id: 'cf-job-title', value: document.getElementById('cf-job-title').value },\n    { id: 'cf-email', value: document.getElementById('cf-email').value }\n  ];\n\n  \/\/ Remove previous error classes\n  fields.forEach(field => {\n    const inputElement = document.getElementById(field.id);\n    inputElement.classList.remove('error');\n  });\n\n  \/\/ Check for empty fields\n  const emptyField = fields.find(field => !field.value);\n  if (emptyField) {\n    document.getElementById(emptyField.id).classList.add('error');\n    event.preventDefault();\n    return; \/\/ Stop further execution if there's an empty field\n  }\n\n  \/\/ Check for unique values\n  const values = fields.map(field => field.value);\n  const uniqueValues = new Set(values);\n  if (uniqueValues.size < values.length) {\n    fields.forEach(field => {\n      const inputElement = document.getElementById(field.id);\n      \/\/ Check for duplicates and add error class\n      if (values.indexOf(field.value) !== values.lastIndexOf(field.value)) {\n        inputElement.classList.add('error');\n      }\n    });\n    event.preventDefault();\n    return; \/\/ Stop further execution if there are duplicates\n  }\n\n  \/\/ Trigger PDF download (assuming you still have the downloadLink logic)\n  const downloadLink = document.getElementById('pdf-download');\n  setTimeout(() => {\n    downloadLink.click();\n  }, 100);\n}\n\n  <\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Unlock the Future of Insurance with CX AI Please provide the information below, to download the whitepaper. Name* Surname Company Job Title Email Download now I AGREE TO RECEIVE OTHER COMMUNICATIONS FROM AFINITI. You can unsubscribe from these communications at any time. For more information on how to unsubscribe, our privacy practices, and how we [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-11241","industries","type-industries","status-publish","format-standard","hentry"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/staging.afiniti.com\/api\/wp\/v2\/industries\/11241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.afiniti.com\/api\/wp\/v2\/industries"}],"about":[{"href":"https:\/\/staging.afiniti.com\/api\/wp\/v2\/types\/industries"}],"author":[{"embeddable":true,"href":"https:\/\/staging.afiniti.com\/api\/wp\/v2\/users\/5"}],"version-history":[{"count":23,"href":"https:\/\/staging.afiniti.com\/api\/wp\/v2\/industries\/11241\/revisions"}],"predecessor-version":[{"id":15415,"href":"https:\/\/staging.afiniti.com\/api\/wp\/v2\/industries\/11241\/revisions\/15415"}],"wp:attachment":[{"href":"https:\/\/staging.afiniti.com\/api\/wp\/v2\/media?parent=11241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}