{"id":8,"date":"2024-09-09T08:26:49","date_gmt":"2024-09-09T08:26:49","guid":{"rendered":"https:\/\/liveincareoptions.co.uk\/?page_id=8"},"modified":"2024-09-09T08:49:42","modified_gmt":"2024-09-09T08:49:42","slug":"home","status":"publish","type":"page","link":"https:\/\/liveincareoptions.co.uk\/","title":{"rendered":"Live-in Care Options"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Find the perfect Live-in Care company for you<\/p>\n\n\n\n<section id=\"form-container\" class=\"interactive-enq-form\">\n    <!-- Page 1 -->\n    <div id=\"page-1\" class=\"form-page active\">\n        <img decoding=\"async\" src=\"https:\/\/www.ip-live-in-care.co.uk\/wp-content\/uploads\/2017\/06\/site-icon.png\" alt=\"Section logo for IP Live in Care\">\n        <h2>To help us find you the right carer, we just need to ask a few questions.<\/h2>\n        <p>Firstly, what type of care are you looking for?<\/p>\n        <button onclick=\"recordAnswer('careType', 'Live-in Care'); nextPage(2)\">Live-in Care<\/button>\n        <button onclick=\"recordAnswer('careType', 'Respite Care'); nextPage(2)\">Respite Care<\/button>\n        <button onclick=\"recordAnswer('careType', 'Complex Care'); nextPage(2)\">Complex Care<\/button>\n        <button class=\"bottom-button-page-1\" onclick=\"jobSeekerPage()\">I&#8217;m a Carer Looking for Work<\/button>\n    <\/div>\n\n    <!-- Page 2 -->\n    <div id=\"page-2\" class=\"form-page\">\n        <img decoding=\"async\" src=\"https:\/\/www.ip-live-in-care.co.uk\/wp-content\/uploads\/2017\/06\/site-icon.png\" alt=\"Section logo for IP Live in Care\">\n        <h2>When do you want care to start?<\/h2>\n        <button onclick=\"recordAnswer('careStart', 'Straight away'); nextPage(3)\">Straight away<\/button>\n        <button onclick=\"recordAnswer('careStart', 'Within a week'); nextPage(3)\">Within a week<\/button>\n        <button onclick=\"recordAnswer('careStart', 'Within a month'); nextPage(3)\">Within a month<\/button>\n        <button onclick=\"recordAnswer('careStart', 'In 3 months or longer'); nextPage(3)\">3 months or longer<\/button>\n        <button onclick=\"recordAnswer('careStart', 'Unsure'); nextPage(3)\">Unsure<\/button>\n        <button class=\"bottom-button-page-2\" onclick=\"previousPage(1)\">Back<\/button>\n    <\/div>\n\n    <!-- Page 3 -->\n    <div id=\"page-3\" class=\"form-page\">\n        <img decoding=\"async\" src=\"https:\/\/www.ip-live-in-care.co.uk\/wp-content\/uploads\/2017\/06\/site-icon.png\" alt=\"Section logo for IP Live in Care\">\n        <h2>How is the care funded?<\/h2>\n        <button onclick=\"recordAnswer('careFunding', 'Self-funded'); nextPage(4)\">Self-funded<\/button>\n        <button onclick=\"recordAnswer('careFunding', 'Council\/NHS funding'); nextPage(4)\">Council\/NHS funding<\/button>\n        <button class=\"bottom-button-page-3\" onclick=\"previousPage(2)\">Back<\/button>\n    <\/div>\n\n    <!-- Page 4 -->\n    <div id=\"page-4\" class=\"form-page\">\n        <img decoding=\"async\" src=\"https:\/\/www.ip-live-in-care.co.uk\/wp-content\/uploads\/2017\/06\/site-icon.png\" alt=\"Section logo for IP Live in Care\">\n        <h2>Will the carer have their own bedroom?<\/h2>\n        <button onclick=\"recordAnswer('carerBedroom', 'Yes'); nextPage(5)\">Yes<\/button>\n        <button onclick=\"recordAnswer('carerBedroom', 'No'); nextPage(5)\">No<\/button>\n        <button onclick=\"recordAnswer('carerBedroom', 'Not sure'); nextPage(5)\">Not sure<\/button>\n        <button class=\"bottom-button-page-4\" onclick=\"previousPage(3)\">Back<\/button>\n    <\/div>\n\n    <!-- Page 5 -->\n    <div id=\"page-5\" class=\"form-page\">\n        <img decoding=\"async\" src=\"https:\/\/www.ip-live-in-care.co.uk\/wp-content\/uploads\/2017\/06\/site-icon.png\" alt=\"Section logo for IP Live in Care\">\n        <h2>Please enter the care recipient&#8217;s postcode<\/h2>\n        <p>We need this to find available carers in the area.<\/p>\n        <input type=\"text\" id=\"postcode\" placeholder=\"Enter postcode\">\n        <button onclick=\"nextPage(6)\">Next<\/button>\n        <button class=\"bottom-button-page-5\" onclick=\"previousPage(4)\">Back<\/button>\n    <\/div>\n\n    <!-- Page 6 -->\n    <div id=\"page-6\" class=\"form-page\">\n        <img decoding=\"async\" src=\"https:\/\/www.ip-live-in-care.co.uk\/wp-content\/uploads\/2017\/06\/site-icon.png\" alt=\"Section logo for IP Live in Care\">\n        <h2>Great news, we currently have carers available in your area who match your care needs.<\/h2>\n        <p>To see carers and shortlist those who best match your needs, please enter your details below.<\/p>\n        <input type=\"text\" id=\"full-name\" placeholder=\"Full Name\" required>\n        <input type=\"tel\" id=\"telephone\" placeholder=\"Telephone Number\" required>\n        <input type=\"email\" id=\"email\" placeholder=\"Email\" required>\n        <label for=\"terms\">\n            <input type=\"checkbox\" id=\"terms\" required checked>\n            I am happy for IP Live in Care to store and use this information to contact me regarding their services and other information they think will be of interest to me.\n        <\/label>\n        <button onclick=\"submitForm()\">Submit<\/button>\n        <button class=\"bottom-button-page-6\" onclick=\"previousPage(5)\">Back<\/button>\n    <\/div>\n\n    <!-- Page 7 - Thank you page -->\n    <div id=\"page-7\" class=\"form-page\">\n        <img decoding=\"async\" src=\"https:\/\/www.ip-live-in-care.co.uk\/wp-content\/uploads\/2017\/06\/site-icon.png\" alt=\"Section logo for IP Live in Care\">\n        <h2 style=\"color: #aa0050; font-weight: bold;\">Thank you! We will be in touch soon.<\/h2>\n        <button class=\"bottom-button-page-7\" onclick=\"previousPage(6)\">Back<\/button>\n    <\/div>\n\n    <!-- Page 8 - Job Seeker page -->\n    <div id=\"page-8\" class=\"form-page\">\n        <img decoding=\"async\" src=\"https:\/\/www.ip-live-in-care.co.uk\/wp-content\/uploads\/2017\/06\/site-icon.png\" alt=\"Section logo for IP Live in Care\"><br>\n        <h2 style=\"color: #aa0050; font-weight: bold;\">\n            Thank you for your interest!<br><br>\n            If you are a job seeker please do not submit your information on this form.<br><br>\n            Click the button below to go to our jobs page and you can apply there.<br><br>\n        <\/h2>\n        <button onclick=\"window.location.href='https:\/\/www.ip-live-in-care.co.uk\/jobs\/vacancies\/'\">Apply here<\/button><br><br>\n\t\t<h2 style=\"color: #aa0050; font-weight: bold;\">\n            Job seekers submitting this form will not be contacted.<br><br>\n        <\/h2>\n    <\/div>\n\n    <!-- Hidden Form for Contact Form 7 -->\n    <div id=\"cf7-form-container\" style=\"display:none;\">\n        <?php echo do_shortcode('[contact-form-7 id=\"40a6697\" title=\"Interactive Enq Form\"]'); ?>\n    <\/div>\n<\/section>\n\n<script>\n    \/\/ Object to store form data\n    let formData = {};\n\n    \/\/ Record the user's selection\n    function recordAnswer(key, value) {\n        formData[key] = value;\n    }\n\n    \/\/ Show the next form page with fade-out and fade-in effect\n    function nextPage(pageNumber) {\n        const currentPage = document.querySelector('.form-page.active');\n        const nextPage = document.getElementById('page-' + pageNumber);\n        currentPage.classList.remove('active');\n        currentPage.style.opacity = 0;\n        setTimeout(() => {\n            currentPage.style.display = 'none';\n            nextPage.style.display = 'block';\n            setTimeout(() => {\n                nextPage.style.opacity = 1;\n                nextPage.classList.add('active');\n            }, 50);\n        }, 1000); \/\/ Increased duration for smoother transition\n    }\n\n    \/\/ Show the previous form page with fade-out and fade-in effect\n    function previousPage(pageNumber) {\n        const currentPage = document.querySelector('.form-page.active');\n        const prevPage = document.getElementById('page-' + pageNumber);\n        currentPage.classList.remove('active');\n        currentPage.style.opacity = 0;\n        setTimeout(() => {\n            currentPage.style.display = 'none';\n            prevPage.style.display = 'block';\n            setTimeout(() => {\n                prevPage.style.opacity = 1;\n                prevPage.classList.add('active');\n            }, 50);\n        }, 1000); \/\/ Increased duration for smoother transition\n    }\n\n    \/\/ Show the job seeker page\n    function jobSeekerPage() {\n        nextPage(8);\n    }\n\n    \/\/ Submit the form data via AJAX\n    document.addEventListener('wpcf7mailsent', function(event) {\n        \/\/ Move to the thank-you page when the form is successfully submitted\n        nextPage(7); \/\/ Adjust to the correct thank-you page number\n    }, false);\n\n    function submitForm() {\n        const fullName = document.getElementById('full-name').value;\n        const telephone = document.getElementById('telephone').value;\n        const email = document.getElementById('email').value;\n        const postcode = document.getElementById('postcode').value;\n\n        \/\/ Validate fields\n        if (!fullName || !telephone || !email || !postcode) {\n            alert('Please fill in all required fields.');\n            return;\n        }\n\n        \/\/ Check if the terms checkbox is checked\n        if (!document.getElementById('terms').checked) {\n            alert('Please accept the terms and conditions.');\n            return;\n        }\n\n        \/\/ Add remaining form data\n        formData.fullName = fullName;\n        formData.telephone = telephone;\n        formData.email = email;\n        formData.postcode = postcode;\n\n        \/\/ Populate hidden fields in the Contact Form 7 form\n        const careTypeField = document.querySelector('[name=\"careType\"]');\n        const careStartField = document.querySelector('[name=\"careStart\"]');\n        const careFundingField = document.querySelector('[name=\"careFunding\"]');\n        const carerBedroomField = document.querySelector('[name=\"carerBedroom\"]');\n        const postcodeField = document.querySelector('[name=\"postcode\"]');\n        const fullNameField = document.querySelector('[name=\"fullName\"]');\n        const telephoneField = document.querySelector('[name=\"telephone\"]');\n        const emailField = document.querySelector('[name=\"email\"]');\n\n        \/\/ Populate fields\n        careTypeField.value = formData.careType;\n        careStartField.value = formData.careStart;\n        careFundingField.value = formData.careFunding;\n        carerBedroomField.value = formData.carerBedroom;\n        postcodeField.value = formData.postcode;\n        fullNameField.value = formData.fullName;\n        telephoneField.value = formData.telephone;\n        emailField.value = formData.email;\n\n        \/\/ Trigger the Contact Form 7 form submission\n        document.querySelector('#cf7-form-container input[type=\"submit\"]').click();\n    }\n<\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Find the perfect Live-in Care company for you To help us find you the right carer, we just need to ask a few questions. Firstly, what type of care are you looking for? Live-in Care Respite Care Complex Care I&#8217;m a Carer Looking for Work When do you want care to start? Straight away Within [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-8","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/liveincareoptions.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/liveincareoptions.co.uk\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/liveincareoptions.co.uk\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/liveincareoptions.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/liveincareoptions.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8"}],"version-history":[{"count":6,"href":"https:\/\/liveincareoptions.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/8\/revisions"}],"predecessor-version":[{"id":29,"href":"https:\/\/liveincareoptions.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/8\/revisions\/29"}],"wp:attachment":[{"href":"https:\/\/liveincareoptions.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}