{"id":3614,"date":"2025-01-28T14:06:53","date_gmt":"2025-01-28T14:06:53","guid":{"rendered":"https:\/\/www.coleggwent.ac.uk\/?page_id=3614"},"modified":"2025-09-23T11:05:08","modified_gmt":"2025-09-23T10:05:08","slug":"part-time-application","status":"publish","type":"page","link":"https:\/\/www.coleggwent.ac.uk\/cy\/part-time-application","title":{"rendered":"Ceisiadau Rhan Amser"},"content":{"rendered":"\n<section class=\"masthead-text masthead-text--form bg-pattern-accent bg-pattern-forward\">\n    <div class=\"masthead-text__inner inner\">\n        <div class=\"masthead-text__text\">\n            <div class=\"text-animate\">\n                <h1 class=\"display-2 intro\">\n                    Part Time Application                <\/h1>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/section>\n\n<section class=\"container part-time-form panel-p bg-secondary bg-pattern-secondary bg-pattern-secondary-flip\">\n    <div class=\"part-time-form__wrapper\">\n        <script>\nvar gform;gform||(document.addEventListener(\"gform_main_scripts_loaded\",function(){gform.scriptsLoaded=!0}),document.addEventListener(\"gform\/theme\/scripts_loaded\",function(){gform.themeScriptsLoaded=!0}),window.addEventListener(\"DOMContentLoaded\",function(){gform.domLoaded=!0}),gform={domLoaded:!1,scriptsLoaded:!1,themeScriptsLoaded:!1,isFormEditor:()=>\"function\"==typeof InitializeEditor,callIfLoaded:function(o){return!(!gform.domLoaded||!gform.scriptsLoaded||!gform.themeScriptsLoaded&&!gform.isFormEditor()||(gform.isFormEditor()&&console.warn(\"The use of gform.initializeOnLoaded() is deprecated in the form editor context and will be removed in Gravity Forms 3.1.\"),o(),0))},initializeOnLoaded:function(o){gform.callIfLoaded(o)||(document.addEventListener(\"gform_main_scripts_loaded\",()=>{gform.scriptsLoaded=!0,gform.callIfLoaded(o)}),document.addEventListener(\"gform\/theme\/scripts_loaded\",()=>{gform.themeScriptsLoaded=!0,gform.callIfLoaded(o)}),window.addEventListener(\"DOMContentLoaded\",()=>{gform.domLoaded=!0,gform.callIfLoaded(o)}))},hooks:{action:{},filter:{}},addAction:function(o,r,e,t){gform.addHook(\"action\",o,r,e,t)},addFilter:function(o,r,e,t){gform.addHook(\"filter\",o,r,e,t)},doAction:function(o){gform.doHook(\"action\",o,arguments)},applyFilters:function(o){return gform.doHook(\"filter\",o,arguments)},removeAction:function(o,r){gform.removeHook(\"action\",o,r)},removeFilter:function(o,r,e){gform.removeHook(\"filter\",o,r,e)},addHook:function(o,r,e,t,n){null==gform.hooks[o][r]&&(gform.hooks[o][r]=[]);var d=gform.hooks[o][r];null==n&&(n=r+\"_\"+d.length),gform.hooks[o][r].push({tag:n,callable:e,priority:t=null==t?10:t})},doHook:function(r,o,e){var t;if(e=Array.prototype.slice.call(e,1),null!=gform.hooks[r][o]&&((o=gform.hooks[r][o]).sort(function(o,r){return o.priority-r.priority}),o.forEach(function(o){\"function\"!=typeof(t=o.callable)&&(t=window[t]),\"action\"==r?t.apply(null,e):e[0]=t.apply(null,e)})),\"filter\"==r)return e[0]},removeHook:function(o,r,t,n){var e;null!=gform.hooks[o][r]&&(e=(e=gform.hooks[o][r]).filter(function(o,r,e){return!!(null!=n&&n!=o.tag||null!=t&&t!=o.priority)}),gform.hooks[o][r]=e)}});\n<\/script>\n\n                <div class='gf_browser_gecko gform_wrapper gravity-theme gform-theme--no-framework' data-form-theme='gravity-theme' data-form-index='0' id='gform_wrapper_4' style='display:none'><div id='gf_4' class='gform_anchor' tabindex='-1'><\/div><form method='post' enctype='multipart\/form-data' target='gform_ajax_frame_4' id='gform_4'  action='\/cy\/wp-json\/wp\/v2\/pages\/3614#gf_4' data-formid='4' novalidate><div class='gf_invisible ginput_recaptchav3' data-sitekey='6LePffQrAAAAAAEC0yMN0NgM5-iRzG1dA3R2fujx' data-tabindex='0'><input id=\"input_59aae38cb629f7ef0d3469b355e12702\" class=\"gfield_recaptcha_response\" type=\"hidden\" name=\"input_59aae38cb629f7ef0d3469b355e12702\" value=\"\"\/><\/div><div id='gf_page_steps_4' class='gf_page_steps'><div id='gf_step_4_1' class='gf_step gf_step_active gf_step_first'><span class='gf_step_number'>1<\/span><span class='gf_step_label'>Course details<\/span><\/div><div id='gf_step_4_2' class='gf_step gf_step_next gf_step_pending'><span class='gf_step_number'>2<\/span><span class='gf_step_label'>Asylum details<\/span><\/div><div id='gf_step_4_3' class='gf_step gf_step_pending'><span class='gf_step_number'>3<\/span><span class='gf_step_label'>Date of Birth<\/span><\/div><div id='gf_step_4_4' class='gf_step gf_step_pending'><span class='gf_step_number'>4<\/span><span class='gf_step_label'>Enrolment status<\/span><\/div><div id='gf_step_4_5' class='gf_step gf_step_pending'><span class='gf_step_number'>5<\/span><span class='gf_step_label'>Personal details<\/span><\/div><div id='gf_step_4_6' class='gf_step gf_step_pending'><span class='gf_step_number'>6<\/span><span class='gf_step_label'>Employer details<\/span><\/div><div id='gf_step_4_7' class='gf_step gf_step_pending'><span class='gf_step_number'>7<\/span><span class='gf_step_label'>Payment information<\/span><\/div><div id='gf_step_4_8' class='gf_step gf_step_last gf_step_pending'><span class='gf_step_number'>8<\/span><span class='gf_step_label'>Summary<\/span><\/div><\/div>\n                        <div class='gform-body gform_body'><div id='gform_page_4_1' class='gform_page ' data-js='page-field-id-0' >\n\t\t\t\t\t<div class='gform_page_fields'><div id='gform_fields_4' class='gform_fields top_label form_sublabel_below description_below validation_below'><div id=\"field_4_10\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full hide-real-input field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_10'>Course Name<\/label><div class='ginput_container ginput_container_text'><input name='input_10' id='input_4_10' type='text' value='' class='large'    placeholder='Course Name'  aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_104\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_104'>Start Date<\/label><div class='ginput_container ginput_container_text'><input name='input_104' id='input_4_104' type='text' value='' class='large'      aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_11\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full hide-real-input field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_hidden form-control\"  data-field-class=\"form-control\" ><div class=\"admin-hidden-markup\"><i class=\"gform-icon gform-icon--hidden\" aria-hidden=\"true\" title=\"This field is hidden when viewing the form\"><\/i><span>This field is hidden when viewing the form<\/span><\/div><label class='gfield_label gform-field-label' for='input_4_11'>Start Date<\/label><div class='ginput_container ginput_container_text'><input name='input_11' id='input_4_11' type='text' value='' class='large'      aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_12\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full hide-real-input field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_12'>Campus<\/label><div class='ginput_container ginput_container_text'><input name='input_12' id='input_4_12' type='text' value='' class='large'      aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_13\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full hide-real-input field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_13'>Mode of Study<\/label><div class='ginput_container ginput_container_text'><input name='input_13' id='input_4_13' type='text' value='' class='large'      aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_14\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full hide-real-input field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_14'>Fees<\/label><div class='ginput_container ginput_container_text'><input name='input_14' id='input_4_14' type='text' value='' class='large'      aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_53\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_hidden form-control\"  data-field-class=\"form-control\" ><div class=\"admin-hidden-markup\"><i class=\"gform-icon gform-icon--hidden\" aria-hidden=\"true\" title=\"This field is hidden when viewing the form\"><\/i><span>This field is hidden when viewing the form<\/span><\/div><label class='gfield_label gform-field-label' for='input_4_53'>Funding Code<\/label><div class='ginput_container ginput_container_text'><input name='input_53' id='input_4_53' type='text' value='' class='large'      aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_68\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_hidden form-control\"  data-field-class=\"form-control\" ><div class=\"admin-hidden-markup\"><i class=\"gform-icon gform-icon--hidden\" aria-hidden=\"true\" title=\"This field is hidden when viewing the form\"><\/i><span>This field is hidden when viewing the form<\/span><\/div><label class='gfield_label gform-field-label' for='input_4_68'>UIO ID<\/label><div class='ginput_container ginput_container_text'><input name='input_68' id='input_4_68' type='text' value='' class='large'      aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_102\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_hidden form-control\"  data-field-class=\"form-control\" ><div class=\"admin-hidden-markup\"><i class=\"gform-icon gform-icon--hidden\" aria-hidden=\"true\" title=\"This field is hidden when viewing the form\"><\/i><span>This field is hidden when viewing the form<\/span><\/div><label class='gfield_label gform-field-label' for='input_4_102'>Campus Digit<\/label><div class='ginput_container ginput_container_text'><input name='input_102' id='input_4_102' type='text' value='' class='large'      aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_69\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_hidden form-control\"  data-field-class=\"form-control\" ><div class=\"admin-hidden-markup\"><i class=\"gform-icon gform-icon--hidden\" aria-hidden=\"true\" title=\"This field is hidden when viewing the form\"><\/i><span>This field is hidden when viewing the form<\/span><\/div><label class='gfield_label gform-field-label' for='input_4_69'>Enquiry Type<\/label><div class='ginput_container ginput_container_text'><input name='input_69' id='input_4_69' type='text' value='' class='large'      aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_103\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_hidden form-control\"  data-field-class=\"form-control\" ><div class=\"admin-hidden-markup\"><i class=\"gform-icon gform-icon--hidden\" aria-hidden=\"true\" title=\"This field is hidden when viewing the form\"><\/i><span>This field is hidden when viewing the form<\/span><\/div><label class='gfield_label gform-field-label' for='input_4_103'>Language Preference<\/label><div class='ginput_container ginput_container_text'><input name='input_103' id='input_4_103' type='text' value='cy' class='large'      aria-invalid=\"false\"   \/><\/div><\/div><fieldset id=\"field_4_15\" class=\"gfield gfield--type-radio gfield--type-choice gfield--input-type-radio gfield--width-full field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-check\"  data-field-class=\"form-check\" ><legend class='gfield_label gform-field-label' >Learner Type<\/legend><div class='ginput_container ginput_container_radio'><div class='gfield_radio' id='input_4_15'>\n\t\t\t<div class='gchoice gchoice_4_15_0'>\n\t\t\t\t\t<input class='gfield-choice-input' name='input_15' type='radio' value='I am an individual learner wishing to book this course' checked='checked' id='choice_4_15_0' onchange='gformToggleRadioOther( this )'    \/>\n\t\t\t\t\t<label for='choice_4_15_0' id='label_4_15_0' class='gform-field-label gform-field-label--type-inline'>I am an individual learner wishing to book this course<\/label>\n\t\t\t<\/div>\n\t\t\t<div class='gchoice gchoice_4_15_1'>\n\t\t\t\t\t<input class='gfield-choice-input' name='input_15' type='radio' value='I am an employer booking this course on an employee\u2019s behalf'  id='choice_4_15_1' onchange='gformToggleRadioOther( this )'    \/>\n\t\t\t\t\t<label for='choice_4_15_1' id='label_4_15_1' class='gform-field-label gform-field-label--type-inline'>I am an employer booking this course on an employee\u2019s behalf<\/label>\n\t\t\t<\/div><\/div><\/div>\n        <script>\n        (function() {\n            function validateEmployerFields() {\n                const repeaterField = document.querySelector(\"#field_4_1000\");\n                if (!repeaterField) {\n                    return true;\n                }\n\n                let isVisible = false;\n                if (repeaterField.style.display !== \"none\") {\n                    if (!repeaterField.classList.contains(\"gfield_hidden\")) {\n                        if (repeaterField.offsetParent !== null) {\n                            isVisible = true;\n                        }\n                    }\n                }\n\n                if (!isVisible) {\n                    return true;\n                }\n\n                document.querySelectorAll(\".gfield_error\").forEach(el => el.classList.remove(\"gfield_error\"));\n                document.querySelectorAll(\".validation_message\").forEach(el => el.remove());\n\n                let isValid = true;\n                let firstErrorField = null;\n\n                \/\/ Check all required fields on the current page only\n                const currentPage = document.querySelector(\"#gform_page_4_6\");\n                if (!currentPage) {\n                    return true;\n                }\n\n                \/\/ Check if page 6 is actually visible\n                let isPageVisible = false;\n                if (currentPage.style.display !== \"none\") {\n                    if (currentPage.offsetParent !== null) {\n                        isPageVisible = true;\n                    }\n                }\n                if (!isPageVisible) {\n                    return true;\n                }\n\n                const requiredFields = currentPage.querySelectorAll(\".gfield_contains_required\");\n                requiredFields.forEach(fieldContainer => {\n                    const input = fieldContainer.querySelector(\"input, select, textarea\");\n                    if (input) {\n                        const isEmpty = !input.value.trim() || input.value === \"Please Select\";\n                        if (isEmpty) {\n                            fieldContainer.classList.add(\"gfield_error\");\n                            \n                            let existingError = fieldContainer.querySelector(\".validation_message\");\n                            if (!existingError) {\n                                const fieldId = fieldContainer.id.replace(\"field_\", \"\");\n                                const errorMsg = document.createElement(\"div\");\n                                errorMsg.id = \"validation_message_\" + fieldId;\n                                errorMsg.className = \"gfield_description validation_message gfield_validation_message\";\n                                errorMsg.textContent = \"This field is required.\";\n                                fieldContainer.appendChild(errorMsg);\n                            }\n                            isValid = false;\n\n                            \/\/ Set firstErrorField to the topmost visible error on the page\n                            if (fieldContainer.offsetTop > 0) {\n                                if (!firstErrorField || fieldContainer.offsetTop < firstErrorField.offsetTop) {\n                                    firstErrorField = fieldContainer;\n                                }\n                            }\n                        }\n                    }\n                });\n\n\n                \/\/ Only check repeater validation if repeater field exists and is visible\n                const employerRepeaterField = document.querySelector(\"#field_4_1000\");\n                if (employerRepeaterField) {\n                    const repeaterRows = document.querySelectorAll(\"#field_4_1000 .gfield_repeater_item\");\n\n                    if (repeaterRows.length === 0) {\n                        employerRepeaterField.classList.add(\"gfield_error\");\n                        const errorMsg = document.createElement(\"div\");\n                        errorMsg.id = \"validation_message_4_1000\";\n                        errorMsg.className = \"gfield_description validation_message gfield_validation_message\";\n                        errorMsg.textContent = \"Please add at least one learner.\";\n                        employerRepeaterField.appendChild(errorMsg);\n                        isValid = false;\n                        if (employerRepeaterField.offsetTop > 0) {\n                            if (!firstErrorField || employerRepeaterField.offsetTop < firstErrorField.offsetTop) {\n                                firstErrorField = employerRepeaterField;\n                            }\n                        }\n                    } else {\n                        repeaterRows.forEach((row, index) => {\n                            const firstName = row.querySelector(\"input[id*=\\\"_1001\\\"]\");\n                            const lastName = row.querySelector(\"input[id*=\\\"_1006\\\"]\");\n                            const gender = row.querySelector(\"select[id*=\\\"_1002\\\"]\");\n                            const dobMonth = row.querySelector(\"select[id*=\\\"_1003_1\\\"]\");\n                            const dobDay = row.querySelector(\"select[id*=\\\"_1003_2\\\"]\");\n                            const dobYear = row.querySelector(\"select[id*=\\\"_1003_3\\\"]\");\n                            \n                            const fields = [\n                                {field: firstName, name: \"First Name\"},\n                                {field: lastName, name: \"Last Name\"},\n                                {field: gender, name: \"Gender\"}\n                            ];\n                            \n                            fields.forEach(({field, name}) => {\n                                const isEmpty = !field || !field.value.trim() || field.value === \"Please Select\";\n                                if (isEmpty) {\n                                let fieldContainer = field.closest(\".gfield\");\n                                if (!fieldContainer) {\n                                    fieldContainer = field.parentElement;\n                                }\n                                if (fieldContainer) {\n                                    fieldContainer.classList.add(\"gfield_error\");\n                                    \n                                    let existingError = fieldContainer.querySelector(\".validation_message\");\n                                    if (!existingError) {\n                                        const fieldId = fieldContainer.id.replace(\"field_\", \"\");\n                                        const errorMsg = document.createElement(\"div\");\n                                        errorMsg.id = \"validation_message_\" + fieldId;\n                                        errorMsg.className = \"gfield_description validation_message gfield_validation_message\";\n                                        errorMsg.textContent = \"This field is required.\";\n                                        fieldContainer.appendChild(errorMsg);\n                                    }\n                                    isValid = false;\n                                    if (fieldContainer.offsetTop > 0) {\n                                        if (!firstErrorField || fieldContainer.offsetTop < firstErrorField.offsetTop) {\n                                            firstErrorField = fieldContainer;\n                                        }\n                                    }\n                                }\n                            }\n                        });\n                        \n                        if (!dobMonth || !dobDay || !dobYear || !dobMonth.value || !dobDay.value || !dobYear.value) {\n                            const dobField = dobMonth || dobDay || dobYear;\n                            if (dobField) {\n                                let fieldContainer = dobField.closest(\".gfield\");\n                                if (!fieldContainer) {\n                                    fieldContainer = dobField.parentElement;\n                                }\n                                if (fieldContainer) {\n                                    fieldContainer.classList.add(\"gfield_error\");\n                                    \n                                    let existingError = fieldContainer.querySelector(\".validation_message\");\n                                    if (!existingError) {\n                                        const fieldId = fieldContainer.id.replace(\"field_\", \"\");\n                                        const errorMsg = document.createElement(\"div\");\n                                        errorMsg.id = \"validation_message_\" + fieldId;\n                                        errorMsg.className = \"gfield_description validation_message gfield_validation_message\";\n                                        errorMsg.textContent = \"Please complete the date of birth.\";\n                                        fieldContainer.appendChild(errorMsg);\n                                    }\n                                    isValid = false;\n                                    if (fieldContainer.offsetTop > 0) {\n                                        if (!firstErrorField || fieldContainer.offsetTop < firstErrorField.offsetTop) {\n                                            firstErrorField = fieldContainer;\n                                        }\n                                    }\n                                }\n                            }\n                        }\n                    });\n                    }\n                }\n\n                if (!isValid) {\n                    if (firstErrorField) {\n                        setTimeout(function() {\n                            firstErrorField.scrollIntoView({\n                                behavior: \"smooth\",\n                                block: \"center\"\n                            });\n\n                            const firstInput = firstErrorField.querySelector(\"input, select, textarea\");\n                            if (firstInput) {\n                                firstInput.focus();\n                            }\n                        }, 100);\n                    }\n                }\n                \n                return isValid;\n            }\n            \n            function initValidation() {\n                const form = document.querySelector(\"#gform_4\");\n                if (!form) return;\n                \n                const nextButtons = form.querySelectorAll(\".gform_next_button\");\n                const submitButton = form.querySelector(\".gform_submit_button\");\n                \n                [...nextButtons, submitButton].forEach(button => {\n                    if (button) {\n                        button.addEventListener(\"click\", function(e) {\n                            if (!validateEmployerFields()) {\n                                e.preventDefault();\n                                e.stopImmediatePropagation();\n                                return false;\n                            }\n                        }, true);\n                    }\n                });\n            }\n            \n            document.addEventListener(\"gform_post_render\", initValidation);\n            document.addEventListener(\"DOMContentLoaded\", initValidation);\n            setTimeout(initValidation, 100);\n        })();\n        <\/script><\/fieldset><\/div>\n                    <\/div>\n                    <div class='gform-page-footer gform_page_footer top_label'>\n                         <input type='button' id='gform_next_button_4_8' class=\"gform_next_button gform-theme-button button btn btn-primary\" onclick='gform.submission.handleButtonClick(this);' data-submission-type='next' value='Next'  \/> \n                    <\/div>\n                <\/div>\n                <div id='gform_page_4_2' class='gform_page' data-js='page-field-id-8' style='display:none;'>\n                    <div class='gform_page_fields'>\n                        <div id='gform_fields_4_2' class='gform_fields top_label form_sublabel_below description_below validation_below'><div id=\"field_4_73\" class=\"gfield gfield--type-html gfield--input-type-html gfield--width-full gfield_html gfield_html_formatted gfield_no_follows_desc field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\"  ><h2>We need some extra information from you<\/h2>\n\n<p>You may be eligible for a discount on tuition fees! To proceed with your booking, we just need a few extra pieces of information from you.<\/p>\n<p>\nPlease provide correct and full information on all questions. Failure to do so would invalidate your Course Booking and result in your booking being removed from our system. For more information please read our <a href=\"\/terms-conditions-policies\" style=\"color:white\">Fee Policy.<\/a><\/p><\/div><fieldset id=\"field_4_24\" class=\"gfield gfield--type-radio gfield--type-choice gfield--input-type-radio gfield--width-full gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-check\"  data-field-class=\"form-check\" ><legend class='gfield_label gform-field-label' >Are you an asylum seeker or have you been living in the UK for less than 3 years?<span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/legend><div class='ginput_container ginput_container_radio'><div class='gfield_radio' id='input_4_24'>\n\t\t\t<div class='gchoice gchoice_4_24_0'>\n\t\t\t\t\t<input class='gfield-choice-input' name='input_24' type='radio' value='No'  id='choice_4_24_0' onchange='gformToggleRadioOther( this )'    \/>\n\t\t\t\t\t<label for='choice_4_24_0' id='label_4_24_0' class='gform-field-label gform-field-label--type-inline'>No<\/label>\n\t\t\t<\/div>\n\t\t\t<div class='gchoice gchoice_4_24_1'>\n\t\t\t\t\t<input class='gfield-choice-input' name='input_24' type='radio' value='Yes'  id='choice_4_24_1' onchange='gformToggleRadioOther( this )'    \/>\n\t\t\t\t\t<label for='choice_4_24_1' id='label_4_24_1' class='gform-field-label gform-field-label--type-inline'>Yes<\/label>\n\t\t\t<\/div><\/div><\/div><\/fieldset><\/div>\n                    <\/div>\n                    <div class='gform-page-footer gform_page_footer top_label'>\n                        <input type='button' id='gform_previous_button_4_22' class=\"gform_previous_button gform-theme-button gform-theme-button--secondary button btn btn-primary\" onclick='gform.submission.handleButtonClick(this);' data-submission-type='previous' value='Previous'  \/> <input type='button' id='gform_next_button_4_22' class=\"gform_next_button gform-theme-button button btn btn-primary\" onclick='gform.submission.handleButtonClick(this);' data-submission-type='next' value='Next'  \/> \n                    <\/div>\n                <\/div>\n                <div id='gform_page_4_3' class='gform_page' data-js='page-field-id-22' style='display:none;'>\n                    <div class='gform_page_fields'>\n                        <div id='gform_fields_4_3' class='gform_fields top_label form_sublabel_below description_below validation_below'><fieldset id=\"field_4_52\" class=\"gfield gfield--type-date gfield--input-type-date gfield--input-type-datedropdown gfield--width-full gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\"  ><legend class='gfield_label gform-field-label' >Date of Birth<span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/legend><div id='input_4_52' class='ginput_container ginput_complex gform-grid-row'><div class='gfield_date_dropdown_day ginput_container ginput_container_date gform-grid-col' id='input_4_52_2_container'><label for='input_4_52_2' class='gform-field-label gform-field-label--type-sub hidden_sub_label screen-reader-text'>Day<\/label><select name='input_52[]' id='input_4_52_2'   aria-required='true'  ><option value=''>Day<\/option><option value='1' >1<\/option><option value='2' >2<\/option><option value='3' >3<\/option><option value='4' >4<\/option><option value='5' >5<\/option><option value='6' >6<\/option><option value='7' >7<\/option><option value='8' >8<\/option><option value='9' >9<\/option><option value='10' >10<\/option><option value='11' >11<\/option><option value='12' >12<\/option><option value='13' >13<\/option><option value='14' >14<\/option><option value='15' >15<\/option><option value='16' >16<\/option><option value='17' >17<\/option><option value='18' >18<\/option><option value='19' >19<\/option><option value='20' >20<\/option><option value='21' >21<\/option><option value='22' >22<\/option><option value='23' >23<\/option><option value='24' >24<\/option><option value='25' >25<\/option><option value='26' >26<\/option><option value='27' >27<\/option><option value='28' >28<\/option><option value='29' >29<\/option><option value='30' >30<\/option><option value='31' >31<\/option><\/select><\/div><div class='gfield_date_dropdown_month ginput_container ginput_container_date gform-grid-col' id='input_4_52_1_container'><label for='input_4_52_1' class='gform-field-label gform-field-label--type-sub hidden_sub_label screen-reader-text'>Month<\/label><select name='input_52[]' id='input_4_52_1'   aria-required='true'  ><option value=''>Month<\/option><option value='1' >1<\/option><option value='2' >2<\/option><option value='3' >3<\/option><option value='4' >4<\/option><option value='5' >5<\/option><option value='6' >6<\/option><option value='7' >7<\/option><option value='8' >8<\/option><option value='9' >9<\/option><option value='10' >10<\/option><option value='11' >11<\/option><option value='12' >12<\/option><\/select><\/div><div class='gfield_date_dropdown_year ginput_container ginput_container_date gform-grid-col' id='input_4_52_3_container'><label for='input_4_52_3' class='gform-field-label gform-field-label--type-sub hidden_sub_label screen-reader-text'>Year<\/label><select name='input_52[]' id='input_4_52_3'   aria-required='true'  ><option value=''>Year<\/option><option value='2027' >2027<\/option><option value='2026' >2026<\/option><option value='2025' >2025<\/option><option value='2024' >2024<\/option><option value='2023' >2023<\/option><option value='2022' >2022<\/option><option value='2021' >2021<\/option><option value='2020' >2020<\/option><option value='2019' >2019<\/option><option value='2018' >2018<\/option><option value='2017' >2017<\/option><option value='2016' >2016<\/option><option value='2015' >2015<\/option><option value='2014' >2014<\/option><option value='2013' >2013<\/option><option value='2012' >2012<\/option><option value='2011' >2011<\/option><option value='2010' >2010<\/option><option value='2009' >2009<\/option><option value='2008' >2008<\/option><option value='2007' >2007<\/option><option value='2006' >2006<\/option><option value='2005' >2005<\/option><option value='2004' >2004<\/option><option value='2003' >2003<\/option><option value='2002' >2002<\/option><option value='2001' >2001<\/option><option value='2000' >2000<\/option><option value='1999' >1999<\/option><option value='1998' >1998<\/option><option value='1997' >1997<\/option><option value='1996' >1996<\/option><option value='1995' >1995<\/option><option value='1994' >1994<\/option><option value='1993' >1993<\/option><option value='1992' >1992<\/option><option value='1991' >1991<\/option><option value='1990' >1990<\/option><option value='1989' >1989<\/option><option value='1988' >1988<\/option><option value='1987' >1987<\/option><option value='1986' >1986<\/option><option value='1985' >1985<\/option><option value='1984' >1984<\/option><option value='1983' >1983<\/option><option value='1982' >1982<\/option><option value='1981' >1981<\/option><option value='1980' >1980<\/option><option value='1979' >1979<\/option><option value='1978' >1978<\/option><option value='1977' >1977<\/option><option value='1976' >1976<\/option><option value='1975' >1975<\/option><option value='1974' >1974<\/option><option value='1973' >1973<\/option><option value='1972' >1972<\/option><option value='1971' >1971<\/option><option value='1970' >1970<\/option><option value='1969' >1969<\/option><option value='1968' >1968<\/option><option value='1967' >1967<\/option><option value='1966' >1966<\/option><option value='1965' >1965<\/option><option value='1964' >1964<\/option><option value='1963' >1963<\/option><option value='1962' >1962<\/option><option value='1961' >1961<\/option><option value='1960' >1960<\/option><option value='1959' >1959<\/option><option value='1958' >1958<\/option><option value='1957' >1957<\/option><option value='1956' >1956<\/option><option value='1955' >1955<\/option><option value='1954' >1954<\/option><option value='1953' >1953<\/option><option value='1952' >1952<\/option><option value='1951' >1951<\/option><option value='1950' >1950<\/option><option value='1949' >1949<\/option><option value='1948' >1948<\/option><option value='1947' >1947<\/option><option value='1946' >1946<\/option><option value='1945' >1945<\/option><option value='1944' >1944<\/option><option value='1943' >1943<\/option><option value='1942' >1942<\/option><option value='1941' >1941<\/option><option value='1940' >1940<\/option><option value='1939' >1939<\/option><option value='1938' >1938<\/option><option value='1937' >1937<\/option><option value='1936' >1936<\/option><option value='1935' >1935<\/option><option value='1934' >1934<\/option><option value='1933' >1933<\/option><option value='1932' >1932<\/option><option value='1931' >1931<\/option><option value='1930' >1930<\/option><option value='1929' >1929<\/option><option value='1928' >1928<\/option><option value='1927' >1927<\/option><option value='1926' >1926<\/option><option value='1925' >1925<\/option><option value='1924' >1924<\/option><option value='1923' >1923<\/option><option value='1922' >1922<\/option><option value='1921' >1921<\/option><option value='1920' >1920<\/option><\/select><\/div><\/div><\/fieldset><div id=\"field_4_62\" class=\"gfield gfield--type-number gfield--input-type-number gfield--width-full field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_hidden\"  ><div class=\"admin-hidden-markup\"><i class=\"gform-icon gform-icon--hidden\" aria-hidden=\"true\" title=\"This field is hidden when viewing the form\"><\/i><span>This field is hidden when viewing the form<\/span><\/div><label class='gfield_label gform-field-label' for='input_4_62'>Age for Page Conditional Logic<\/label><div class='ginput_container ginput_container_number'><input name='input_62' id='input_4_62' type='number' step='any'   value='' class='large'      aria-invalid=\"false\"  \/><\/div>\n        <script type=\"text\/javascript\">\n        function calculateAge(dobMonth, dobDay, dobYear, ageField) {\n            if (!dobMonth.value || !dobDay.value || !dobYear.value) {\n                ageField.value = \"\";\n                return;\n            }\n            \n            const today = new Date();\n            const currentYear = today.getFullYear();\n            \/\/ Use previous year if we havent reached 31st August yet\n            let academicYear = currentYear;\n            if (today.getMonth() < 7) {\n                academicYear = currentYear - 1;\n            } else if (today.getMonth() === 7) {\n                if (today.getDate() < 31) {\n                    academicYear = currentYear - 1;\n                }\n            }\n            const checkDate = new Date(academicYear, 7, 31); \/\/ 31st August of academic year\n            const dob = new Date(dobYear.value, dobMonth.value - 1, dobDay.value);\n            \n            if (isNaN(dob.getTime())) {\n                ageField.value = \"\";\n                return;\n            }\n            \n            let age = checkDate.getFullYear() - dob.getFullYear();\n            const monthDiff = checkDate.getMonth() - dob.getMonth();\n\n            if (monthDiff < 0) {\n                age = age - 1;\n            } else if (monthDiff === 0) {\n                if (checkDate.getDate() < dob.getDate()) {\n                    age = age - 1;\n                }\n            }\n            \n            ageField.value = age;\n            ageField.dispatchEvent(new Event(\"change\", { bubbles: true }));\n            ageField.dispatchEvent(new Event(\"input\", { bubbles: true }));\n        }\n        \n        document.addEventListener(\"change\", function(event) {\n            const dobFields = [\"input_4_52_1\", \"input_4_52_2\", \"input_4_52_3\"];\n            if (dobFields.includes(event.target.id)) {\n                const dobMonth = document.querySelector(\"#input_4_52_1\");\n                const dobDay = document.querySelector(\"#input_4_52_2\");\n                const dobYear = document.querySelector(\"#input_4_52_3\");\n                const ageField = document.querySelector(\"#input_4_62\");\n\n                if (dobMonth &#038;&#038; dobDay &#038;&#038; dobYear &#038;&#038; ageField) {\n                    calculateAge(dobMonth, dobDay, dobYear, ageField);\n                }\n            }\n        });\n\n        \/\/ Calculate age on page load if DOB fields already have values, like after pressing back button\n        jQuery(document).on(\"gform_post_render\", function(event, formId) {\n            if (formId != 4) return;\n\n            const dobMonth = document.querySelector(\"#input_4_52_1\");\n            const dobDay = document.querySelector(\"#input_4_52_2\");\n            const dobYear = document.querySelector(\"#input_4_52_3\");\n            const ageField = document.querySelector(\"#input_4_62\");\n\n            if (dobMonth &#038;&#038; dobDay &#038;&#038; dobYear &#038;&#038; ageField &#038;&#038; dobMonth.value &#038;&#038; dobDay.value &#038;&#038; dobYear.value) {\n                calculateAge(dobMonth, dobDay, dobYear, ageField);\n            }\n        });\n        <\/script><\/div><div id=\"field_4_63\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_hidden form-control\"  data-field-class=\"form-control\" ><div class=\"admin-hidden-markup\"><i class=\"gform-icon gform-icon--hidden\" aria-hidden=\"true\" title=\"This field is hidden when viewing the form\"><\/i><span>This field is hidden when viewing the form<\/span><\/div><label class='gfield_label gform-field-label' for='input_4_63'>Text for Page Conditional Logic<\/label><div class='ginput_container ginput_container_text'><input name='input_63' id='input_4_63' type='text' value='' class='large'      aria-invalid=\"false\"   \/><\/div>\n        <script>\n        \/\/ Use event delegation to handle AJAX-loaded form elements\n        document.addEventListener(\"change\", function(event) {\n            if (event.target.id === \"input_4_62\" || \n                event.target.id === \"input_4_53\" ||\n                event.target.name === \"input_24\") {\n                updateConditionalLogicField();\n            }\n        });\n        \n        document.addEventListener(\"input\", function(event) {\n            if (event.target.id === \"input_4_62\") {\n                updateConditionalLogicField();\n            }\n        });\n        \n        function updateConditionalLogicField() {\n            const ageField = document.querySelector(\"#input_4_62\");\n            const fundingCodeField = document.querySelector(\"#input_4_53\");\n            const conditionalTextField = document.querySelector(\"#input_4_63\");\n            \n            if (!ageField || !fundingCodeField || !conditionalTextField) return;\n            \n            const age = parseFloat(ageField.value);\n            const fundingCode = fundingCodeField.value;\n            \n            if (isNaN(age) || !ageField.value) {\n                conditionalTextField.value = \"\";\n                conditionalTextField.dispatchEvent(new Event(\"change\", { bubbles: true }));\n                return;\n            }\n            \n            const asylumSeekerChecked = document.querySelector(\"input[name=\\\"input_24\\\"]:checked\");\n            const asylumSeekerValue = asylumSeekerChecked ? asylumSeekerChecked.value : \"\";\n            \n            if (asylumSeekerValue === \"Yes\") {\n                conditionalTextField.value = \"\";\n            } else if (age > 16) {\n                if (fundingCode === \"3\") {\n                    conditionalTextField.value = \"false\";\n                } else {\n                    conditionalTextField.value = age;\n                }\n            } else {\n                conditionalTextField.value = age;\n            }\n            \n            conditionalTextField.dispatchEvent(new Event(\"change\", { bubbles: true }));\n        }\n        \n        \/\/ Initial check when page loads\n        setTimeout(updateConditionalLogicField, 100);\n        <\/script><\/div><\/div>\n                    <\/div>\n                    <div class='gform-page-footer gform_page_footer top_label'>\n                        <input type='button' id='gform_previous_button_4_64' class=\"gform_previous_button gform-theme-button gform-theme-button--secondary button btn btn-primary\" onclick='gform.submission.handleButtonClick(this);' data-submission-type='previous' value='Previous'  \/> <input type='button' id='gform_next_button_4_64' class=\"gform_next_button gform-theme-button button btn btn-primary\" onclick='gform.submission.handleButtonClick(this);' data-submission-type='next' value='Next'  \/> \n                    <\/div>\n                <\/div>\n                <div id='gform_page_4_4' class='gform_page' data-js='page-field-id-64' style='display:none;'>\n                    <div class='gform_page_fields'>\n                        <div id='gform_fields_4_4' class='gform_fields top_label form_sublabel_below description_below validation_below'><fieldset id=\"field_4_66\" class=\"gfield gfield--type-radio gfield--type-choice gfield--input-type-radio gfield--width-full gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-check\"  data-field-class=\"form-check\" ><legend class='gfield_label gform-field-label' >Are you currently enrolled with Coleg Gwent on a Full-Time or Work-based learning Programme?<span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/legend><div class='ginput_container ginput_container_radio'><div class='gfield_radio' id='input_4_66'>\n\t\t\t<div class='gchoice gchoice_4_66_0'>\n\t\t\t\t\t<input class='gfield-choice-input' name='input_66' type='radio' value='Yes'  id='choice_4_66_0' onchange='gformToggleRadioOther( this )'    \/>\n\t\t\t\t\t<label for='choice_4_66_0' id='label_4_66_0' class='gform-field-label gform-field-label--type-inline'>Yes<\/label>\n\t\t\t<\/div>\n\t\t\t<div class='gchoice gchoice_4_66_1'>\n\t\t\t\t\t<input class='gfield-choice-input' name='input_66' type='radio' value='No'  id='choice_4_66_1' onchange='gformToggleRadioOther( this )'    \/>\n\t\t\t\t\t<label for='choice_4_66_1' id='label_4_66_1' class='gform-field-label gform-field-label--type-inline'>No<\/label>\n\t\t\t<\/div><\/div><\/div><\/fieldset><div id=\"field_4_67\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_hidden form-control\"  data-field-class=\"form-control\" ><div class=\"admin-hidden-markup\"><i class=\"gform-icon gform-icon--hidden\" aria-hidden=\"true\" title=\"This field is hidden when viewing the form\"><\/i><span>This field is hidden when viewing the form<\/span><\/div><label class='gfield_label gform-field-label' for='input_4_67'>Text for Page Conditional Logic<\/label><div class='ginput_container ginput_container_text'><input name='input_67' id='input_4_67' type='text' value='' class='large'      aria-invalid=\"false\"   \/><\/div>\n        <script>\n        \/\/ Use event delegation to handle AJAX-loaded form elements\n        document.addEventListener(\"change\", function(event) {\n            \/\/ Handle age field changes\n            if (event.target.id === \"input_4_62\" || \n                event.target.name === \"input_66\") {\n                updateEnrolmentConditionalLogicField();\n            }\n        });\n        \n        document.addEventListener(\"input\", function(event) {\n            if (event.target.id === \"input_4_62\") {\n                updateEnrolmentConditionalLogicField();\n            }\n        });\n        \n        function updateEnrolmentConditionalLogicField() {\n            const ageField = document.querySelector(\"#input_4_62\");\n            const conditionalTextField = document.querySelector(\"#input_4_67\");\n            \n            if (!ageField || !conditionalTextField) return;\n            \n            const age = parseFloat(ageField.value);\n            const enrolmentChecked = document.querySelector(\"input[name=\\\"input_66\\\"]:checked\");\n            const enrolmentValue = enrolmentChecked ? enrolmentChecked.value : \"\";\n            \n            if (isNaN(age) || !ageField.value) {\n                conditionalTextField.value = \"\";\n            } else if (age >= 19) {\n                if (enrolmentValue === \"No\") {\n                    conditionalTextField.value = \"false\";\n                } else {\n                    conditionalTextField.value = age;\n                }\n            } else {\n                conditionalTextField.value = age;\n            }\n            \n            conditionalTextField.dispatchEvent(new Event(\"change\", { bubbles: true }));\n        }\n        \n        \/\/ Initial check when page loads\n        setTimeout(updateEnrolmentConditionalLogicField, 100);\n        <\/script><\/div><\/div>\n                    <\/div>\n                    <div class='gform-page-footer gform_page_footer top_label'>\n                        <input type='button' id='gform_previous_button_4_54' class=\"gform_previous_button gform-theme-button gform-theme-button--secondary button btn btn-primary\" onclick='gform.submission.handleButtonClick(this);' data-submission-type='previous' value='Previous'  \/> <input type='button' id='gform_next_button_4_54' class=\"gform_next_button gform-theme-button button btn btn-primary\" onclick='gform.submission.handleButtonClick(this);' data-submission-type='next' value='Next'  \/> \n                    <\/div>\n                <\/div>\n                <div id='gform_page_4_5' class='gform_page' data-js='page-field-id-54' style='display:none;'>\n                    <div class='gform_page_fields'>\n                        <div id='gform_fields_4_5' class='gform_fields top_label form_sublabel_below description_below validation_below'><div id=\"field_4_55\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full input-50 gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_55'>First Name<span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/label><div class='ginput_container ginput_container_text'><input name='input_55' id='input_4_55' type='text' value='' class='large'     aria-required=\"true\" aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_18\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full input-50 gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_18'>Last Name<span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/label><div class='ginput_container ginput_container_text'><input name='input_18' id='input_4_18' type='text' value='' class='large'     aria-required=\"true\" aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_19\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_19'>Email<span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/label><div class='ginput_container ginput_container_text'><input name='input_19' id='input_4_19' type='text' value='' class='large'     aria-required=\"true\" aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_20\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_20'>Telephone<span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/label><div class='ginput_container ginput_container_text'><input name='input_20' id='input_4_20' type='text' value='' class='large'     aria-required=\"true\" aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_21\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_21'>Postcode<span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/label><div class='ginput_container ginput_container_text'><input name='input_21' id='input_4_21' type='text' value='' class='large'     aria-required=\"true\" aria-invalid=\"false\"   \/><\/div><\/div><\/div>\n                    <\/div>\n                    <div class='gform-page-footer gform_page_footer top_label'>\n                        <input type='button' id='gform_previous_button_4_30' class=\"gform_previous_button gform-theme-button gform-theme-button--secondary button btn btn-primary\" onclick='gform.submission.handleButtonClick(this);' data-submission-type='previous' value='Previous'  \/> <input type='button' id='gform_next_button_4_30' class=\"gform_next_button gform-theme-button button btn btn-primary\" onclick='gform.submission.handleButtonClick(this);' data-submission-type='next' value='Next'  \/> \n                    <\/div>\n                <\/div>\n                <div id='gform_page_4_6' class='gform_page' data-js='page-field-id-30' style='display:none;'>\n                    <div class='gform_page_fields'>\n                        <div id='gform_fields_4_6' class='gform_fields top_label form_sublabel_below description_below validation_below'><div id=\"field_4_31\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full input-50 js-parent-first-name gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_31'>First Name*<span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/label><div class='ginput_container ginput_container_text'><input name='input_31' id='input_4_31' type='text' value='' class='large'     aria-required=\"true\" aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_32\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full input-50 js-parent-last-name gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_32'>Last Name*<span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/label><div class='ginput_container ginput_container_text'><input name='input_32' id='input_4_32' type='text' value='' class='large'     aria-required=\"true\" aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_33\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_33'>Employer\/Business Name<\/label><div class='ginput_container ginput_container_text'><input name='input_33' id='input_4_33' type='text' value='' class='large'      aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_47\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_47'>Address Lookup<\/label><div class='ginput_container ginput_container_text'><input name='input_47' id='input_4_47' type='text' value='' class='large'    placeholder='Start typing the first line of your address'  aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_49\" class=\"gfield gfield--type-html gfield--input-type-html gfield--width-full gfield_html gfield_html_formatted gfield_no_follows_desc field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\"  ><script src=\"https:\/\/cdn.jsdelivr.net\/npm\/@ideal-postcodes\/address-finder-bundled@4\"><\/script>\n<script>\n(function() {\n    var initialisedFields = [];\n    function initAddressFinder() {\n        if (typeof IdealPostcodes === \"undefined\") return;\n        var fields = document.querySelectorAll('input[name=\"input_47\"]');\n        for (var i = 0; i < fields.length; i++) {\n            var field = fields[i];\n            if (initialisedFields.indexOf(field) !== -1) continue;\n            IdealPostcodes.AddressFinder.setup({\n                apiKey: 'ak_mn4i990zl7nKSowjY79JbUAnx8410',\n                inputField: 'input[name=\"input_47\"]',\n                outputFields: {\n                    line_1: 'input[name=\"input_35\"]',\n                    line_2: 'input[name=\"input_48\"]',\n                    post_town: 'input[name=\"input_36\"]',\n                    county: 'input[name=\"input_37\"]',\n                    postcode: 'input[name=\"input_38\"]'\n                }\n            });\n            initialisedFields.push(field);\n        }\n    }\n    document.addEventListener(\"gform_post_render\", initAddressFinder);\n    var interval = setInterval(initAddressFinder, 200);\n    setTimeout(function() {\n        clearInterval(interval);\n    }, 5000);\n})();\n<\/script><\/div><div id=\"field_4_35\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full js-parent-first-line gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_35'>First line of address*<span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/label><div class='ginput_container ginput_container_text'><input name='input_35' id='input_4_35' type='text' value='' class='large'     aria-required=\"true\" aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_48\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_48'>Second line of address<\/label><div class='ginput_container ginput_container_text'><input name='input_48' id='input_4_48' type='text' value='' class='large'      aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_36\" class=\"gfield gfield--type-text gfield--input-type-text input-50 js-parent-town field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_36'>Town or city<\/label><div class='ginput_container ginput_container_text'><input name='input_36' id='input_4_36' type='text' value='' class='large'      aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_37\" class=\"gfield gfield--type-text gfield--input-type-text input-50 js-parent-locality field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_37'>Locality or district<\/label><div class='ginput_container ginput_container_text'><input name='input_37' id='input_4_37' type='text' value='' class='large'      aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_38\" class=\"gfield gfield--type-text gfield--input-type-text input-50-solo js-parent-postcode gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_38'>Postcode*<span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/label><div class='ginput_container ginput_container_text'><input name='input_38' id='input_4_38' type='text' value='' class='large'     aria-required=\"true\" aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_50\" class=\"gfield gfield--type-email gfield--input-type-email gfield--width-full input-50 js-parent-email gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_50'>Email address*<span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/label><div class='ginput_container ginput_container_email'>\n                            <input name='input_50' id='input_4_50' type='email' value='' class='large'    aria-required=\"true\" aria-invalid=\"false\"  \/>\n                        <\/div><\/div><div id=\"field_4_51\" class=\"gfield gfield--type-email gfield--input-type-email gfield--width-full input-50 gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_51'>Confirm Email address*<span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/label><div class='ginput_container ginput_container_email'>\n                            <input name='input_51' id='input_4_51' type='email' value='' class='large'    aria-required=\"true\" aria-invalid=\"false\"  \/>\n                        <\/div><\/div><div id=\"field_4_40\" class=\"gfield gfield--type-phone gfield--input-type-phone input-50 js-parent-phone gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_40'>Telephone*<span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/label><div class='ginput_container ginput_container_phone'><input name='input_40' id='input_4_40' type='tel' value='' class='large'   aria-required=\"true\" aria-invalid=\"false\"   \/><\/div><\/div><fieldset id=\"field_4_74\" class=\"gfield gfield--type-checkbox gfield--type-choice gfield--input-type-checkbox gfield--width-full padding-below-large field_sublabel_below gfield--has-description field_description_below field_validation_below gfield_visibility_visible\"  ><legend class='gfield_label gform-field-label gfield_label_before_complex' >Marketing Preference<\/legend><div class='ginput_container ginput_container_checkbox'><div class='gfield_checkbox ' id='input_4_74'><div class='gchoice gchoice_4_74_1'>\n\t\t\t\t\t\t\t\t<input class='gfield-choice-input' name='input_74.1' type='checkbox'  value='Post'  id='choice_4_74_1'   aria-describedby=\"gfield_description_4_74\"\/>\n\t\t\t\t\t\t\t\t<label for='choice_4_74_1' id='label_4_74_1' class='gform-field-label gform-field-label--type-inline'>Post<\/label>\n\t\t\t\t\t\t\t<\/div><div class='gchoice gchoice_4_74_2'>\n\t\t\t\t\t\t\t\t<input class='gfield-choice-input' name='input_74.2' type='checkbox'  value='Email'  id='choice_4_74_2'   \/>\n\t\t\t\t\t\t\t\t<label for='choice_4_74_2' id='label_4_74_2' class='gform-field-label gform-field-label--type-inline'>Email<\/label>\n\t\t\t\t\t\t\t<\/div><div class='gchoice gchoice_4_74_3'>\n\t\t\t\t\t\t\t\t<input class='gfield-choice-input' name='input_74.3' type='checkbox'  value='Text'  id='choice_4_74_3'   \/>\n\t\t\t\t\t\t\t\t<label for='choice_4_74_3' id='label_4_74_3' class='gform-field-label gform-field-label--type-inline'>Text<\/label>\n\t\t\t\t\t\t\t<\/div><div class='gchoice gchoice_4_74_4'>\n\t\t\t\t\t\t\t\t<input class='gfield-choice-input' name='input_74.4' type='checkbox'  value='Phone'  id='choice_4_74_4'   \/>\n\t\t\t\t\t\t\t\t<label for='choice_4_74_4' id='label_4_74_4' class='gform-field-label gform-field-label--type-inline'>Phone<\/label>\n\t\t\t\t\t\t\t<\/div><\/div><\/div><div class='gfield_description' id='gfield_description_4_74'>We\u2019d like to keep you informed about new courses, events and offers from the Coleg Gwent group.\nPlease select how you\u2019d like to hear from us:<\/div><\/fieldset><fieldset id=\"field_4_44\" class=\"gfield gfield--type-radio gfield--type-choice gfield--input-type-radio gfield--width-full field_sublabel_below gfield--has-description field_description_below hidden_label field_validation_below gfield_visibility_hidden form-check\"  data-field-class=\"form-check\" ><div class=\"admin-hidden-markup\"><i class=\"gform-icon gform-icon--hidden\" aria-hidden=\"true\" title=\"This field is hidden when viewing the form\"><\/i><span>This field is hidden when viewing the form<\/span><\/div><legend class='gfield_label gform-field-label' >Language Preference<\/legend><div class='ginput_container ginput_container_radio'><div class='gfield_radio' id='input_4_44'>\n\t\t\t<div class='gchoice gchoice_4_44_0'>\n\t\t\t\t\t<input class='gfield-choice-input' name='input_44' type='radio' value='en'  id='choice_4_44_0' onchange='gformToggleRadioOther( this )' aria-describedby=\"gfield_description_4_44\"   \/>\n\t\t\t\t\t<label for='choice_4_44_0' id='label_4_44_0' class='gform-field-label gform-field-label--type-inline'>English<\/label>\n\t\t\t<\/div>\n\t\t\t<div class='gchoice gchoice_4_44_1'>\n\t\t\t\t\t<input class='gfield-choice-input' name='input_44' type='radio' value='cy' checked='checked' id='choice_4_44_1' onchange='gformToggleRadioOther( this )' aria-describedby=\"gfield_description_4_44\"   \/>\n\t\t\t\t\t<label for='choice_4_44_1' id='label_4_44_1' class='gform-field-label gform-field-label--type-inline'>Welsh<\/label>\n\t\t\t<\/div><\/div><\/div><div class='gfield_description' id='gfield_description_4_44'>Which language would you prefer to receive future communications in?<\/div><\/fieldset><div id=\"field_4_45\" class=\"gfield gfield--type-html gfield--input-type-html gfield--width-full gfield_html gfield_html_formatted field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\"  ><p>You can change your mind and opt out at any time via our <a href=\"\/privacy-policy\">Privacy Policy.<\/a><\/p><\/div><div id=\"field_4_1004\" class=\"gfield gfield--type-section gsection field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\"  ><h3 class=\"gsection_title\"><\/h3><\/div><div id=\"field_4_999\" class=\"gfield gfield--type-html gfield_html gfield_html_formatted gfield_no_follows_desc field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\"  ><h2 class=\"fs_21 fs_bold fieldgroup_title\">LEARNER DETAILS<\/h2>\n\n                                <p><strong>Information for Employers<\/strong>:<\/p>\n<p>Do you have 6 or more learners you'd like to book on to this course? If so, funding may be available. We also offer bespoke courses to meet your training needs.<\/p>\n<p>To find out if you're eligible or to discuss your bespoke training needs contact our Employer Engagement Team on <a href=\"tel:+441495333777\">01495 333777<\/a> or email <a href=\"mailto:employers@coleggwent.ac.uk?subject=Employer PT Course Enquiry\">employers@coleggwent.ac.uk<\/a> with your requirements.<\/p><\/div><div id=\"field_4_1000\" class=\"gfield gfield--type-repeater field_sublabel_below gfield--has-description field_description_below field_validation_below gfield_visibility_visible\"  ><div class='gfield_repeater_wrapper' data-max_items='0'><fieldset class='gfield_repeater gfield_repeater_container'>\n<legend class='gfield_label gform-field-label'>Additional Learners<\/legend><div class=\"gfield_repeater_items\"><div class='gfield_repeater_item'><div class='gfield_repeater_cell'><div id=\"field_4_1001\" class=\"gfield gfield_valid gfield--type-text field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_1001-0'>First Name* (Required)<\/label><div class='ginput_container ginput_container_text'><input name='input_1001[0]' id='input_4_1001-0' type='text' value='' class=''      aria-invalid=\"false\"   \/><\/div><\/div><\/div><div class='gfield_repeater_cell'><div id=\"field_4_1006\" class=\"gfield gfield_valid gfield--type-text field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_1006-0'>Last Name* (Required)<\/label><div class='ginput_container ginput_container_text'><input name='input_1006[0]' id='input_4_1006-0' type='text' value='' class=''      aria-invalid=\"false\"   \/><\/div><\/div><\/div><div class='gfield_repeater_cell'><div id=\"field_4_1002\" class=\"gfield gfield_valid gfield--type-select field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\"  ><label class='gfield_label gform-field-label' for='input_4_1002-0'>Gender* (Required)<\/label><div class='ginput_container ginput_container_select'><select name='input_1002[0]' id='input_4_1002-0' class='gfield_select'     aria-invalid=\"false\" ><option value='Please Select' selected='selected'>Please Select<\/option><option value='Female' >Female<\/option><option value='Male' >Male<\/option><option value='Other' >Other<\/option><\/select><\/div><\/div><\/div><div class='gfield_repeater_cell'><fieldset id=\"field_4_1003\" class=\"gfield gfield_valid gfield--type-date gfield--input-type-datedropdown field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\"  ><legend class='gfield_label gform-field-label' >Date of Birth* (Required)<\/legend><div id='input_4_1003-0' class='ginput_container ginput_complex gform-grid-row'><div class='gfield_date_dropdown_day ginput_container ginput_container_date gform-grid-col' id='input_4_1003_2_container'><label for='input_4_1003_2-0' class='gform-field-label gform-field-label--type-sub hidden_sub_label screen-reader-text'>Day<\/label><select name='input_1003[0][]' id='input_4_1003_2-0'   aria-required='false'  ><option value=''>Day<\/option><option value='1' >1<\/option><option value='2' >2<\/option><option value='3' >3<\/option><option value='4' >4<\/option><option value='5' >5<\/option><option value='6' >6<\/option><option value='7' >7<\/option><option value='8' >8<\/option><option value='9' >9<\/option><option value='10' >10<\/option><option value='11' >11<\/option><option value='12' >12<\/option><option value='13' >13<\/option><option value='14' >14<\/option><option value='15' >15<\/option><option value='16' >16<\/option><option value='17' >17<\/option><option value='18' >18<\/option><option value='19' >19<\/option><option value='20' >20<\/option><option value='21' >21<\/option><option value='22' >22<\/option><option value='23' >23<\/option><option value='24' >24<\/option><option value='25' >25<\/option><option value='26' >26<\/option><option value='27' >27<\/option><option value='28' >28<\/option><option value='29' >29<\/option><option value='30' >30<\/option><option value='31' >31<\/option><\/select><\/div><div class='gfield_date_dropdown_month ginput_container ginput_container_date gform-grid-col' id='input_4_1003_1_container'><label for='input_4_1003_1-0' class='gform-field-label gform-field-label--type-sub hidden_sub_label screen-reader-text'>Month<\/label><select name='input_1003[0][]' id='input_4_1003_1-0'   aria-required='false'  ><option value=''>Month<\/option><option value='1' >1<\/option><option value='2' >2<\/option><option value='3' >3<\/option><option value='4' >4<\/option><option value='5' >5<\/option><option value='6' >6<\/option><option value='7' >7<\/option><option value='8' >8<\/option><option value='9' >9<\/option><option value='10' >10<\/option><option value='11' >11<\/option><option value='12' >12<\/option><\/select><\/div><div class='gfield_date_dropdown_year ginput_container ginput_container_date gform-grid-col' id='input_4_1003_3_container'><label for='input_4_1003_3-0' class='gform-field-label gform-field-label--type-sub hidden_sub_label screen-reader-text'>Year<\/label><select name='input_1003[0][]' id='input_4_1003_3-0'   aria-required='false'  ><option value=''>Year<\/option><option value='2027' >2027<\/option><option value='2026' >2026<\/option><option value='2025' >2025<\/option><option value='2024' >2024<\/option><option value='2023' >2023<\/option><option value='2022' >2022<\/option><option value='2021' >2021<\/option><option value='2020' >2020<\/option><option value='2019' >2019<\/option><option value='2018' >2018<\/option><option value='2017' >2017<\/option><option value='2016' >2016<\/option><option value='2015' >2015<\/option><option value='2014' >2014<\/option><option value='2013' >2013<\/option><option value='2012' >2012<\/option><option value='2011' >2011<\/option><option value='2010' >2010<\/option><option value='2009' >2009<\/option><option value='2008' >2008<\/option><option value='2007' >2007<\/option><option value='2006' >2006<\/option><option value='2005' >2005<\/option><option value='2004' >2004<\/option><option value='2003' >2003<\/option><option value='2002' >2002<\/option><option value='2001' >2001<\/option><option value='2000' >2000<\/option><option value='1999' >1999<\/option><option value='1998' >1998<\/option><option value='1997' >1997<\/option><option value='1996' >1996<\/option><option value='1995' >1995<\/option><option value='1994' >1994<\/option><option value='1993' >1993<\/option><option value='1992' >1992<\/option><option value='1991' >1991<\/option><option value='1990' >1990<\/option><option value='1989' >1989<\/option><option value='1988' >1988<\/option><option value='1987' >1987<\/option><option value='1986' >1986<\/option><option value='1985' >1985<\/option><option value='1984' >1984<\/option><option value='1983' >1983<\/option><option value='1982' >1982<\/option><option value='1981' >1981<\/option><option value='1980' >1980<\/option><option value='1979' >1979<\/option><option value='1978' >1978<\/option><option value='1977' >1977<\/option><option value='1976' >1976<\/option><option value='1975' >1975<\/option><option value='1974' >1974<\/option><option value='1973' >1973<\/option><option value='1972' >1972<\/option><option value='1971' >1971<\/option><option value='1970' >1970<\/option><option value='1969' >1969<\/option><option value='1968' >1968<\/option><option value='1967' >1967<\/option><option value='1966' >1966<\/option><option value='1965' >1965<\/option><option value='1964' >1964<\/option><option value='1963' >1963<\/option><option value='1962' >1962<\/option><option value='1961' >1961<\/option><option value='1960' >1960<\/option><option value='1959' >1959<\/option><option value='1958' >1958<\/option><option value='1957' >1957<\/option><option value='1956' >1956<\/option><option value='1955' >1955<\/option><option value='1954' >1954<\/option><option value='1953' >1953<\/option><option value='1952' >1952<\/option><option value='1951' >1951<\/option><option value='1950' >1950<\/option><option value='1949' >1949<\/option><option value='1948' >1948<\/option><option value='1947' >1947<\/option><option value='1946' >1946<\/option><option value='1945' >1945<\/option><option value='1944' >1944<\/option><option value='1943' >1943<\/option><option value='1942' >1942<\/option><option value='1941' >1941<\/option><option value='1940' >1940<\/option><option value='1939' >1939<\/option><option value='1938' >1938<\/option><option value='1937' >1937<\/option><option value='1936' >1936<\/option><option value='1935' >1935<\/option><option value='1934' >1934<\/option><option value='1933' >1933<\/option><option value='1932' >1932<\/option><option value='1931' >1931<\/option><option value='1930' >1930<\/option><option value='1929' >1929<\/option><option value='1928' >1928<\/option><option value='1927' >1927<\/option><option value='1926' >1926<\/option><option value='1925' >1925<\/option><option value='1924' >1924<\/option><option value='1923' >1923<\/option><option value='1922' >1922<\/option><option value='1921' >1921<\/option><option value='1920' >1920<\/option><\/select><\/div><\/div><\/fieldset><\/div><div class='gfield_repeater_cell'><div id=\"field_4_1007\" class=\"gfield gfield_valid gfield--type-text field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_1007-0'>Address<\/label><div class='ginput_container ginput_container_text'><input name='input_1007[0]' id='input_4_1007-0' type='text' value='' class=''    placeholder='Start typing the first line of your address'  aria-invalid=\"false\"   \/><\/div><\/div><\/div><div class='gfield_repeater_cell'><div id=\"field_4_1008\" class=\"gfield gfield_valid gfield--type-text field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_1008-0'>Town or City<\/label><div class='ginput_container ginput_container_text'><input name='input_1008[0]' id='input_4_1008-0' type='text' value='' class=''      aria-invalid=\"false\"   \/><\/div><\/div><\/div><div class='gfield_repeater_cell'><div id=\"field_4_1009\" class=\"gfield gfield_valid gfield--type-text field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_1009-0'>Locality or District<\/label><div class='ginput_container ginput_container_text'><input name='input_1009[0]' id='input_4_1009-0' type='text' value='' class=''      aria-invalid=\"false\"   \/><\/div><\/div><\/div><div class='gfield_repeater_cell'><div id=\"field_4_1010\" class=\"gfield gfield_valid gfield--type-text field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_1010-0'>Postcode<\/label><div class='ginput_container ginput_container_text'><input name='input_1010[0]' id='input_4_1010-0' type='text' value='' class=''      aria-invalid=\"false\"   \/><\/div><\/div><\/div><div class='gfield_repeater_buttons'><button type='button' class='add_repeater_item gform-theme-button gform-theme-button--secondary gform-theme-button--size-sm  add_repeater_item_text' onclick='gformAddRepeaterItem(this)' onkeypress='gformAddRepeaterItem(this)'>Add Another Learner<\/button><button type='button' class='remove_repeater_item gform-theme-button gform-theme-button--secondary gform-theme-button--size-sm remove_repeater_item_text' onclick='if(confirm(\"Are you sure you want to remove this item?\")){gformDeleteRepeaterItem(this)};' onkeypress='gformDeleteRepeaterItem(this)' style='visibility:hidden;'>Remove Learner<\/button><\/div><\/div><\/div><\/fieldset><\/div><div class='gfield_description' id='gfield_description_4_1000'>If you are booking for multiple employees, please add their details below:<\/div><\/div><div id=\"field_4_1005\" class=\"gfield gfield--type-section gsection field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\"  ><h3 class=\"gsection_title\"><\/h3><\/div><div id=\"field_4_70\" class=\"gfield gfield--type-hidden gfield--input-type-hidden gform_hidden field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\"  ><div class='ginput_container ginput_container_text'><input name='input_70' id='input_4_70' type='hidden' class='gform_hidden'  aria-invalid=\"false\" value='' \/><\/div><\/div><div id=\"field_4_75\" class=\"gfield gfield--type-html gfield--input-type-html gfield--width-full gfield_html gfield_html_formatted gfield_no_follows_desc field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\"  ><script src=\"https:\/\/cdn.jsdelivr.net\/npm\/@ideal-postcodes\/address-finder-bundled@4\"><\/script>\n<script>\n(function() {\n    'use strict';\n\n    var initialisedFields = [];\n\n    function initialiseAddressFinder() {\n        if (typeof IdealPostcodes === 'undefined') {\n            return;\n        }\n\n        var addressFields = document.querySelectorAll('input[name*=\"input_1007\"]');\n\n        for (var i = 0; i < addressFields.length; i++) {\n            var currentField = addressFields[i];\n\n            if (initialisedFields.indexOf(currentField) !== -1) {\n                continue;\n            }\n\n            var fieldName = currentField.getAttribute('name');\n            var indexMatch = fieldName.match(\/input_1007\\[(\\d+)\\]\/);\n            var repeaterIndex = indexMatch ? indexMatch[1] : '0';\n\n            var fieldSelectors = {\n                address: 'input[name=\"input_1007[' + repeaterIndex + ']\"]',\n                townCity: 'input[name=\"input_1008[' + repeaterIndex + ']\"]',\n                locality: 'input[name=\"input_1009[' + repeaterIndex + ']\"]',\n                postcode: 'input[name=\"input_1010[' + repeaterIndex + ']\"]'\n            };\n\n            var requiredFields = {\n                address: document.querySelector(fieldSelectors.address),\n                townCity: document.querySelector(fieldSelectors.townCity),\n                locality: document.querySelector(fieldSelectors.locality),\n                postcode: document.querySelector(fieldSelectors.postcode)\n            };\n\n            if (requiredFields.address) {\n                if (requiredFields.townCity) {\n                    if (requiredFields.locality) {\n                        if (requiredFields.postcode) {\n                            try {\n                                IdealPostcodes.AddressFinder.setup({\n                                    apiKey: 'ak_mn4i990zl7nKSowjY79JbUAnx8410',\n                                    inputField: fieldSelectors.address,\n                                    outputFields: {\n                                        line_1: fieldSelectors.address,\n                                        post_town: fieldSelectors.townCity,\n                                        county: fieldSelectors.locality,\n                                        postcode: fieldSelectors.postcode\n                                    }\n                                });\n\n                                initialisedFields.push(currentField);\n\n                            } catch (error) {\n                                console.error('Failed to initialise Ideal Postcodes for field:', fieldSelectors.address, error);\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n\n    function handleFormRender() {\n        setTimeout(initialiseAddressFinder, 100);\n    }\n\n    function setupDOMWatcher() {\n        var observer = new MutationObserver(function(mutations) {\n            var shouldReinitialise = false;\n\n            mutations.forEach(function(mutation) {\n                if (mutation.type === 'childList') {\n                    for (var i = 0; i < mutation.addedNodes.length; i++) {\n                        var addedNode = mutation.addedNodes[i];\n\n                        if (addedNode.nodeType === Node.ELEMENT_NODE) {\n                            var hasAddressFields = false;\n                            if (addedNode.querySelectorAll) {\n                                if (addedNode.querySelectorAll('input[name*=\"input_1007\"]').length > 0) {\n                                    hasAddressFields = true;\n                                }\n                            }\n                            var isAddressField = false;\n                            if (addedNode.name) {\n                                if (addedNode.name.indexOf('input_1007') !== -1) {\n                                    isAddressField = true;\n                                }\n                            }\n\n                            if (hasAddressFields || isAddressField) {\n                                shouldReinitialise = true;\n                                break;\n                            }\n                        }\n                    }\n                }\n            });\n\n            if (shouldReinitialise) {\n                setTimeout(initialiseAddressFinder, 200);\n            }\n        });\n\n        observer.observe(document.body, {\n            childList: true,\n            subtree: true\n        });\n    }\n\n    document.addEventListener('gform_post_render', handleFormRender);\n    document.addEventListener('gform_post_conditional_logic', handleFormRender);\n    document.addEventListener('DOMContentLoaded', initialiseAddressFinder);\n\n    setupDOMWatcher();\n\n    var pollAttempts = 0;\n    var maxPollAttempts = 20;\n\n    var pollInterval = setInterval(function() {\n        pollAttempts++;\n        initialiseAddressFinder();\n\n        if (pollAttempts >= maxPollAttempts) {\n            clearInterval(pollInterval);\n        }\n    }, 1000);\n\n})();\n<\/script><\/div><\/div>\n                    <\/div>\n                    <div class='gform-page-footer gform_page_footer top_label'>\n                        <input type='button' id='gform_previous_button_4_76' class=\"gform_previous_button gform-theme-button gform-theme-button--secondary button btn btn-primary\" onclick='gform.submission.handleButtonClick(this);' data-submission-type='previous' value='Previous'  \/> <input type='button' id='gform_next_button_4_76' class=\"gform_next_button gform-theme-button button btn btn-primary\" onclick='gform.submission.handleButtonClick(this);' data-submission-type='next' value='Next'  \/> \n                    <\/div>\n                <\/div>\n                <div id='gform_page_4_7' class='gform_page' data-js='page-field-id-76' style='display:none;'>\n                    <div class='gform_page_fields'>\n                        <div id='gform_fields_4_7' class='gform_fields top_label form_sublabel_below description_below validation_below'><div id=\"field_4_96\" class=\"gfield gfield--type-html gfield--input-type-html gfield--width-full js-course-summary gfield_html gfield_html_formatted gfield_no_follows_desc field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\"  >\n                <h2>Total Costs<\/h2>\n                <h3>Course Summary<\/h3>\n                <p><\/p>\n                <h3>Start Date<\/h3>\n                <p><\/p>\n                <h3>Campus<\/h3>\n                <p><\/p>\n                <h3>Mode of Study<\/h3>\n                <p><\/p>\n                <h3>Fees<\/h3>\n                <p class=\"js-fees-display\"><\/p>\n                <script>\n                (function() {\n                    var baseFee = \"\";\n                    var feeValue = parseFloat(baseFee.replace(\/[^0-9.]\/g, \"\"));\n\n                    function updateCourseSummaryFees() {\n                        var repeaterItems = document.querySelectorAll(\"#field_4_1000 .gfield_repeater_item\");\n                        var learnerCount = repeaterItems.length;\n\n                        var totalFee = feeValue * learnerCount;\n                        var formattedFee = baseFee.replace(\/[0-9.]+\/, totalFee.toFixed(2));\n\n                        var feesDisplay = document.querySelector(\".js-course-summary .js-fees-display\");\n                        if (feesDisplay) {\n                            feesDisplay.textContent = formattedFee;\n                        }\n                    }\n\n                    function observeRepeater() {\n                        var repeaterContainer = document.querySelector(\"#field_4_1000 .gfield_repeater_items\");\n                        if (repeaterContainer) {\n                            var observer = new MutationObserver(updateCourseSummaryFees);\n                            observer.observe(repeaterContainer, { childList: true, subtree: true });\n                        }\n                    }\n\n                    document.addEventListener(\"DOMContentLoaded\", function() {\n                        updateCourseSummaryFees();\n                        observeRepeater();\n                    });\n\n                    document.addEventListener(\"gform_post_render\", function() {\n                        updateCourseSummaryFees();\n                        observeRepeater();\n                    });\n\n                    setTimeout(function() {\n                        updateCourseSummaryFees();\n                        observeRepeater();\n                    }, 100);\n                })();\n                <\/script><\/div><div id=\"field_4_99\" class=\"gfield gfield--type-section gfield--input-type-section gsection field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\"  ><h3 class=\"gsection_title\"><\/h3><\/div><fieldset id=\"field_4_77\" class=\"gfield gfield--type-radio gfield--type-choice gfield--input-type-radio gfield--width-full gfield_contains_required field_sublabel_below gfield--has-description field_description_below field_validation_below gfield_visibility_visible form-check\"  data-field-class=\"form-check\" ><legend class='gfield_label gform-field-label' >Payment Options<span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/legend><div class='ginput_container ginput_container_radio'><div class='gfield_radio' id='input_4_77'>\n\t\t\t<div class='gchoice gchoice_4_77_0'>\n\t\t\t\t\t<input class='gfield-choice-input' name='input_77' type='radio' value='Invoice\/PO'  id='choice_4_77_0' onchange='gformToggleRadioOther( this )' aria-describedby=\"gfield_description_4_77\"   \/>\n\t\t\t\t\t<label for='choice_4_77_0' id='label_4_77_0' class='gform-field-label gform-field-label--type-inline'>Invoice\/PO<\/label>\n\t\t\t<\/div>\n\t\t\t<div class='gchoice gchoice_4_77_1'>\n\t\t\t\t\t<input class='gfield-choice-input' name='input_77' type='radio' value='Cheque'  id='choice_4_77_1' onchange='gformToggleRadioOther( this )'    \/>\n\t\t\t\t\t<label for='choice_4_77_1' id='label_4_77_1' class='gform-field-label gform-field-label--type-inline'>Cheque<\/label>\n\t\t\t<\/div>\n\t\t\t<div class='gchoice gchoice_4_77_2'>\n\t\t\t\t\t<input class='gfield-choice-input' name='input_77' type='radio' value='Card (offline payment)*'  id='choice_4_77_2' onchange='gformToggleRadioOther( this )'    \/>\n\t\t\t\t\t<label for='choice_4_77_2' id='label_4_77_2' class='gform-field-label gform-field-label--type-inline'>Card (offline payment)*<\/label>\n\t\t\t<\/div><\/div><\/div><div class='gfield_description' id='gfield_description_4_77'>Booking confirmation will be finalised on receipt of payment.\n<hr \/>\n*PLEASE NOTE: We do not accept American Express and Diners Club. Please contact our Student Recruitment team on <a href=\"tel:+441495333777\" style=\"color:white\">01495 333777<\/a> to make a payment over the phone.<\/div><\/fieldset><div id=\"field_4_101\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_101'>P.O Number<\/label><div class='ginput_container ginput_container_text'><input name='input_101' id='input_4_101' type='text' value='' class='large'      aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_100\" class=\"gfield gfield--type-section gfield--input-type-section gsection field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\"  ><h3 class=\"gsection_title\"><\/h3><\/div><div id=\"field_4_78\" class=\"gfield gfield--type-html gfield--input-type-html gfield--width-full gfield_html gfield_html_formatted gfield_no_follows_desc field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\"  ><h2>BILLING DETAILS<\/h2><\/div><fieldset id=\"field_4_95\" class=\"gfield gfield--type-checkbox gfield--type-choice gfield--input-type-checkbox gfield--width-full js-trigger-match-billing-details field_sublabel_below gfield--no-description field_description_below hidden_label field_validation_below gfield_visibility_visible\"  ><legend class='gfield_label gform-field-label gfield_label_before_complex' >billing_details<\/legend><div class='ginput_container ginput_container_checkbox'><div class='gfield_checkbox ' id='input_4_95'><div class='gchoice gchoice_4_95_1'>\n\t\t\t\t\t\t\t\t<input class='gfield-choice-input' name='input_95.1' type='checkbox'  value='Use details given on previous page'  id='choice_4_95_1'   \/>\n\t\t\t\t\t\t\t\t<label for='choice_4_95_1' id='label_4_95_1' class='gform-field-label gform-field-label--type-inline'>Use details given on previous page<\/label>\n\t\t\t\t\t\t\t<\/div><\/div><\/div>\n        <script>\n        (function() {\n            var isUpdating = false;\n            var lastCheckboxState = null;\n            \n            function updateBillingFields(userTriggered = false) {\n                if (isUpdating) return;\n                isUpdating = true;\n                \n                const checkbox = document.querySelector(\"input[name=\\\"input_95.1\\\"]\");\n                let isChecked = false;\n                if (checkbox) {\n                    isChecked = checkbox.checked;\n                }\n                \n                const fieldMappings = {\n                    31: 85, 32: 86, 47: 87, 35: 89, 36: 90, \n                    37: 91, 38: 92, 50: 94, 40: 93\n                };\n                \n                const targetFields = [85, 86, 87, 89, 90, 91, 92, 93, 94];\n                \n                if (isChecked) {\n                    Object.entries(fieldMappings).forEach(([source, target]) => {\n                        const sourceField = document.querySelector(\"#input_4_\" + source);\n                        const targetField = document.querySelector(\"#input_4_\" + target);\n\n                        if (sourceField) {\n                            if (targetField) {\n                                targetField.value = sourceField.value;\n                                targetField.dispatchEvent(new Event(\"change\", { bubbles: true }));\n                                targetField.dispatchEvent(new Event(\"input\", { bubbles: true }));\n                            }\n                        }\n                    });\n                } else if (userTriggered) {\n                    if (lastCheckboxState === true) {\n                        targetFields.forEach(fieldId => {\n                            const field = document.querySelector(\"#input_4_\" + fieldId);\n                            if (field) {\n                                field.value = \"\";\n                                field.dispatchEvent(new Event(\"change\", { bubbles: true }));\n                                field.dispatchEvent(new Event(\"input\", { bubbles: true }));\n                            }\n                        });\n                    }\n                }\n\n                lastCheckboxState = isChecked;\n                setTimeout(function() { isUpdating = false; }, 100);\n            }\n            \n            function initializeCheckboxState() {\n                const checkbox = document.querySelector(\"input[name=\\\"input_95.1\\\"]\");\n                if (checkbox) {\n                    lastCheckboxState = checkbox.checked;\n                } else {\n                    lastCheckboxState = false;\n                }\n            }\n            \n            document.addEventListener(\"change\", function(event) {\n                if (event.target.name === \"input_95.1\") {\n                    updateBillingFields(true);\n                }\n            });\n            \n            document.addEventListener(\"gform_post_render\", function() {\n                setTimeout(initializeCheckboxState, 100);\n            });\n            \n            setTimeout(initializeCheckboxState, 100);\n        })();\n        <\/script><\/fieldset><div id=\"field_4_85\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full input-50 js-child-first-name gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_85'>First Name*<span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/label><div class='ginput_container ginput_container_text'><input name='input_85' id='input_4_85' type='text' value='' class='large'     aria-required=\"true\" aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_86\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full input-50 js-child-last-name gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_86'>Last Name*<span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/label><div class='ginput_container ginput_container_text'><input name='input_86' id='input_4_86' type='text' value='' class='large'     aria-required=\"true\" aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_87\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_87'>Address Lookup<\/label><div class='ginput_container ginput_container_text'><input name='input_87' id='input_4_87' type='text' value='' class='large'    placeholder='Start typing the first line of your address'  aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_88\" class=\"gfield gfield--type-html gfield--input-type-html gfield--width-full gfield_html gfield_html_formatted gfield_no_follows_desc field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\"  ><script src=\"https:\/\/cdn.jsdelivr.net\/npm\/@ideal-postcodes\/address-finder-bundled@4\"><\/script>\n<script>\n(function() {\n    var initialisedFields = [];\n    function initAddressFinder() {\n        if (typeof IdealPostcodes === \"undefined\") return;\n        var fields = document.querySelectorAll('input[name=\"input_87\"]');\n        for (var i = 0; i < fields.length; i++) {\n            var field = fields[i];\n            if (initialisedFields.indexOf(field) !== -1) continue;\n            IdealPostcodes.AddressFinder.setup({\n                apiKey: 'ak_mn4i990zl7nKSowjY79JbUAnx8410',\n                inputField: 'input[name=\"input_87\"]',\n                outputFields: {\n                    line_1: 'input[name=\"input_89\"]',\n                    post_town: 'input[name=\"input_90\"]',\n                    county: 'input[name=\"input_91\"]',\n                    postcode: 'input[name=\"input_92\"]'\n                }\n            });\n            initialisedFields.push(field);\n        }\n    }\n    document.addEventListener(\"gform_post_render\", initAddressFinder);\n    var interval = setInterval(initAddressFinder, 200);\n    setTimeout(function() {\n        clearInterval(interval);\n    }, 5000);\n})();\n<\/script><\/div><div id=\"field_4_89\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full js-child-first-line gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_89'>First line of address*<span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/label><div class='ginput_container ginput_container_text'><input name='input_89' id='input_4_89' type='text' value='' class='large'     aria-required=\"true\" aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_90\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full input-50 js-child-town field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_90'>Town or city<\/label><div class='ginput_container ginput_container_text'><input name='input_90' id='input_4_90' type='text' value='' class='large'      aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_91\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full input-50 js-child-locality field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_91'>Locality or district<\/label><div class='ginput_container ginput_container_text'><input name='input_91' id='input_4_91' type='text' value='' class='large'      aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_92\" class=\"gfield gfield--type-text gfield--input-type-text gfield--width-full input-50-solo js-child-postcode gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_92'>Postcode*<span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/label><div class='ginput_container ginput_container_text'><input name='input_92' id='input_4_92' type='text' value='' class='large'     aria-required=\"true\" aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_93\" class=\"gfield gfield--type-phone gfield--input-type-phone gfield--width-full input-50 js-child-phone gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_93'>Telephone*<span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/label><div class='ginput_container ginput_container_phone'><input name='input_93' id='input_4_93' type='tel' value='' class='large'   aria-required=\"true\" aria-invalid=\"false\"   \/><\/div><\/div><div id=\"field_4_94\" class=\"gfield gfield--type-email gfield--input-type-email gfield--width-full input-50 js-child-email gfield_contains_required field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible form-control\"  data-field-class=\"form-control\" ><label class='gfield_label gform-field-label' for='input_4_94'>Email address*<span class=\"gfield_required\"><span class=\"gfield_required gfield_required_text\">(Required)<\/span><\/span><\/label><div class='ginput_container ginput_container_email'>\n                            <input name='input_94' id='input_4_94' type='email' value='' class='large'    aria-required=\"true\" aria-invalid=\"false\"  \/>\n                        <\/div><\/div><div id=\"field_4_82\" class=\"gfield gfield--type-section gfield--input-type-section gsection field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\"  ><h3 class=\"gsection_title\"><\/h3><\/div><div id=\"field_4_80\" class=\"gfield gfield--type-html gfield--input-type-html gfield--width-full gfield_html gfield_html_formatted gfield_no_follows_desc field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\"  ><h3>CANCELLATION POLICY<\/h3>\n<p>Please read our <a href=\"https:\/\/www.coleggwent.ac.uk\/terms-conditions-policies\">Terms and Conditions<\/a> to submit your booking request.<\/p><\/div><div id=\"field_4_81\" class=\"gfield gfield--type-section gfield--input-type-section gsection field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\"  ><h3 class=\"gsection_title\"><\/h3><\/div><div id=\"field_4_79\" class=\"gfield gfield--type-html gfield--input-type-html gfield--width-full gfield_html gfield_html_formatted gfield_no_follows_desc field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\"  ><h3>PRIVACY POLICY<\/h3>\n<p>Data collected on this form is used for funding, statistical and administrative purposes connected with your application. You have various rights to your data and further details and our full privacy notice can be found at&nbsp;<a href=\"https:\/\/www.coleggwent.ac.uk\/privacy-policy\" target=\"_blank\" rel=\"noopener\">www.coleggwent.ac.uk\/privacy<\/a><\/p><\/div><\/div>\n                    <\/div>\n                    <div class='gform-page-footer gform_page_footer top_label'>\n                        <input type='button' id='gform_previous_button_4_97' class=\"gform_previous_button gform-theme-button gform-theme-button--secondary button btn btn-primary\" onclick='gform.submission.handleButtonClick(this);' data-submission-type='previous' value='Previous'  \/> <input type='button' id='gform_next_button_4_97' class=\"gform_next_button gform-theme-button button btn btn-primary\" onclick='gform.submission.handleButtonClick(this);' data-submission-type='next' value='Next'  \/> \n                    <\/div>\n                <\/div>\n                <div id='gform_page_4_8' class='gform_page' data-js='page-field-id-97' style='display:none;'>\n                    <div class='gform_page_fields'>\n                        <div id='gform_fields_4_8' class='gform_fields top_label form_sublabel_below description_below validation_below'><div id=\"field_4_98\" class=\"gfield gfield--type-html gfield--input-type-html gfield--width-full js-confirmation gfield_html gfield_html_formatted gfield_no_follows_desc field_sublabel_below gfield--no-description field_description_below field_validation_below gfield_visibility_visible\"  >\n                <h2>Summary<\/h2>\n                <h3>Your Details<\/h3>\n                <script>\n                (function() {\n                    var baseFee = \"\";\n                    var feeValue = parseFloat(baseFee.replace(\/[^0-9.]\/g, \"\"));\n\n                    function updateConfirmationDetails() {\n                        const firstName = document.querySelector(\"#input_4_31\");\n                        const lastName = document.querySelector(\"#input_4_32\");\n                        const address = document.querySelector(\"#input_4_35\");\n                        const companyName = document.querySelector(\"#input_4_33\");\n                        const postcode = document.querySelector(\"#input_4_38\");\n                        const email = document.querySelector(\"#input_4_50\");\n                        const phone = document.querySelector(\"#input_4_40\");\n\n                        const confirmationField = document.querySelector(\".js-confirmation\");\n                        if (!confirmationField) return;\n\n                        const yourDetailsH3 = confirmationField.querySelector(\"h3\");\n                        if (!yourDetailsH3 || yourDetailsH3.textContent !== \"Your Details\") return;\n\n                        const existingDetails = confirmationField.querySelectorAll(\".user-details\");\n                        existingDetails.forEach(el => el.remove());\n\n                        let detailsHtml = \"\";\n\n                        if (firstName) {\n                            if (lastName) {\n                                if (firstName.value || lastName.value) {\n                                    detailsHtml += \"<p class=\\\"user-details\\\">\" + (firstName.value + \" \" + lastName.value).trim() + \"<\/p>\";\n                                }\n                            }\n                        }\n                        if (companyName) {\n                            if (companyName.value) {\n                                detailsHtml += \"<p class=\\\"user-details\\\">\" + companyName.value + \"<\/p>\";\n                            }\n                        }\n                        if (address) {\n                            if (address.value) {\n                                detailsHtml += \"<p class=\\\"user-details\\\">\" + address.value + \"<\/p>\";\n                            }\n                        }\n                        if (postcode) {\n                            if (postcode.value) {\n                                detailsHtml += \"<p class=\\\"user-details\\\">\" + postcode.value + \"<\/p>\";\n                            }\n                        }\n                        if (email) {\n                            if (email.value) {\n                                detailsHtml += \"<p class=\\\"user-details\\\">\" + email.value + \"<\/p>\";\n                            }\n                        }\n                        if (phone) {\n                            if (phone.value) {\n                                detailsHtml += \"<p class=\\\"user-details\\\">\" + phone.value + \"<\/p>\";\n                            }\n                        }\n\n                        if (detailsHtml) {\n                            yourDetailsH3.insertAdjacentHTML(\"afterend\", detailsHtml);\n                        }\n                    }\n\n                    function updateConfirmationFees() {\n                        var repeaterItems = document.querySelectorAll(\"#field_4_1000 .gfield_repeater_item\");\n                        var learnerCount = repeaterItems.length;\n\n                        var totalFee = feeValue * learnerCount;\n                        var formattedFee = baseFee.replace(\/[0-9.]+\/, totalFee.toFixed(2));\n\n                        var confirmationField = document.querySelector(\".js-confirmation\");\n                        if (!confirmationField) return;\n\n                        var feesElements = confirmationField.querySelectorAll(\"h3\");\n                        feesElements.forEach(function(h3) {\n                            if (h3.textContent === \"Fees\") {\n                                var feesP = h3.nextElementSibling;\n                                if (feesP && feesP.tagName === \"P\") {\n                                    feesP.textContent = formattedFee;\n                                }\n                            }\n                        });\n                    }\n\n                    function observeRepeater() {\n                        var repeaterContainer = document.querySelector(\"#field_4_1000 .gfield_repeater_items\");\n                        if (repeaterContainer) {\n                            var observer = new MutationObserver(updateConfirmationFees);\n                            observer.observe(repeaterContainer, { childList: true, subtree: true });\n                        }\n                    }\n\n                    function initConfirmationWatcher() {\n                        const fieldIds = [31, 32, 35, 38, 50, 40];\n\n                        fieldIds.forEach(fieldId => {\n                            const field = document.querySelector(\"#input_4_\" + fieldId);\n                            if (field) {\n                                field.addEventListener(\"input\", updateConfirmationDetails);\n                                field.addEventListener(\"change\", updateConfirmationDetails);\n                            }\n                        });\n\n                        updateConfirmationDetails();\n                        updateConfirmationFees();\n                        observeRepeater();\n                    }\n\n                    document.addEventListener(\"DOMContentLoaded\", initConfirmationWatcher);\n                    document.addEventListener(\"gform_post_render\", initConfirmationWatcher);\n\n                    setTimeout(initConfirmationWatcher, 100);\n                })();\n                <\/script>\n                <h3>Course<\/h3>\n                <p><\/p>\n                <h3>Start Date<\/h3>\n                <p><\/p>\n                <h3>Campus<\/h3>\n                <p><\/p>\n                <h3>Mode of Study<\/h3>\n                <p><\/p>\n                <h3>Fees<\/h3>\n                <p><\/p><\/div><\/div><\/div>\n        <div class='gform-page-footer gform_page_footer top_label'><input type='submit' id='gform_previous_button_4' class=\"gform_previous_button gform-theme-button gform-theme-button--secondary button btn btn-primary\" onclick='gform.submission.handleButtonClick(this);' data-submission-type='previous' value='Previous'  \/> <input type='submit' id='gform_submit_button_4' class=\"gform_button button btn btn-primary\" onclick='gform.submission.handleButtonClick(this);' data-submission-type='submit' value='Submit'  \/> <input type='hidden' name='gform_ajax' value='form_id=4&amp;title=&amp;description=&amp;tabindex=0&amp;theme=gravity-theme&amp;hash=d9393d56d8ed3bb6f8a98fa5aa5550cf' \/>\n            <input type='hidden' class='gform_hidden' name='gform_submission_method' data-js='gform_submission_method_4' value='iframe' \/>\n            <input type='hidden' class='gform_hidden' name='gform_theme' data-js='gform_theme_4' id='gform_theme_4' value='gravity-theme' \/>\n            <input type='hidden' class='gform_hidden' name='gform_style_settings' data-js='gform_style_settings_4' id='gform_style_settings_4' value='' \/>\n            <input type='hidden' class='gform_hidden' name='is_submit_4' value='1' \/>\n            <input type='hidden' class='gform_hidden' name='gform_submit' value='4' \/>\n            \n            <input type='hidden' class='gform_hidden' name='gform_currency' data-currency='USD' value='tJrIR8sSqpVGCag1qV8PxNLqy4Okemh4W0xE8JAECUbHvX7hmudXHi8do0JAkamrG0RYdtexui5XJaTxmKhjXpp5edKv1oQUh\/lugCiUocLZORQ=' \/>\n            <input type='hidden' class='gform_hidden' name='gform_unique_id' value='' \/>\n            <input type='hidden' class='gform_hidden' name='state_4' value='WyJ7XCIxNVwiOltcImEyNWY2MzJjN2Q1YmI3YzNiMjk3ZTAyMzZlOGFmNzc3XCIsXCIzNTFiMjc3N2Y0MjczNjhhMzhjMDU0ODBiZWJlYTY2NlwiXSxcIjI0XCI6W1wiNjZhNDVjYmNmM2Y1ZmRkMzQ4YzA4NDM2OTUzYzM2MDRcIixcIjUxZGRiMWEyN2JjYmQ4MzU1ZTZlYjlmNTBhYWEyYzFkXCJdLFwiNjZcIjpbXCI1MWRkYjFhMjdiY2JkODM1NWU2ZWI5ZjUwYWFhMmMxZFwiLFwiNjZhNDVjYmNmM2Y1ZmRkMzQ4YzA4NDM2OTUzYzM2MDRcIl0sXCI3NC4xXCI6XCI3YmEyZWMyYjkzM2FlNjNlOWQyOTU4NjZlMTBiMTY0MlwiLFwiNzQuMlwiOlwiZTEyZTEzNDUyMTdjMGZmMzRiYjhhYWI2MzZjOWIzOTVcIixcIjc0LjNcIjpcIjBjOWI0ZmYzZmFhNDc5ZjlkZDcwZDNiMjVkOGE0YWVjXCIsXCI3NC40XCI6XCJlYjc5ZDM3MDYwODlhMDU1ZWZmMTdlMDNhZWIxMTdkOVwiLFwiNzdcIjpbXCIwNTY0MDAyMTIxNmM0ODMxZjYzNDRlYmFlM2VkNDQwMVwiLFwiZmI0OGIzYjkzYjNiZDJlODU1YTJhZDJiMTY1NjIzYzdcIixcIjJmMzg3ZTNjYzg4NWI0NWQzNTg5ODkwNDEzZGU4YjgyXCJdLFwiOTUuMVwiOlwiOTMzZDZiZDc0MDZjOWZjMzlhODUwNDc3YjE2ZTRjYzFcIn0iLCIyNmU5NjQ3OTMyMDdhYzE5NjYxOTExMjc1YThkYjE3YyJd' \/>\n            <input type='hidden' autocomplete='off' class='gform_hidden' name='gform_target_page_number_4' id='gform_target_page_number_4' value='2' \/>\n            <input type='hidden' autocomplete='off' class='gform_hidden' name='gform_source_page_number_4' id='gform_source_page_number_4' value='1' \/>\n            <input type='hidden' name='gform_field_values' value='course-name=&amp;start-date=&amp;client-start-date=&amp;campus=&amp;study-mode=&amp;fee=&amp;funding_code=&amp;uioid=&amp;lang_pref=cy&amp;campus_digit=' \/>\n            \n        <\/div>\n             <\/div><\/div>\n                        <\/form>\n                        <\/div>\n\t\t                <iframe style='display:none;width:0px;height:0px;' src='about:blank' name='gform_ajax_frame_4' id='gform_ajax_frame_4' title='This iframe contains the logic required to handle Ajax powered Gravity Forms.'><\/iframe>\n\t\t                <script>\ngform.initializeOnLoaded( function() {gformInitSpinner( 4, 'https:\/\/www.coleggwent.ac.uk\/wp-content\/plugins\/gravityforms\/images\/spinner.svg', true );jQuery('#gform_ajax_frame_4').on('load',function(){var contents = jQuery(this).contents().find('*').html();var is_postback = contents.indexOf('GF_AJAX_POSTBACK') >= 0;if(!is_postback){return;}var form_content = jQuery(this).contents().find('#gform_wrapper_4');var is_confirmation = jQuery(this).contents().find('#gform_confirmation_wrapper_4').length > 0;var is_redirect = contents.indexOf('gformRedirect(){') >= 0;var is_form = form_content.length > 0 && ! is_redirect && ! is_confirmation;var mt = parseInt(jQuery('html').css('margin-top'), 10) + parseInt(jQuery('body').css('margin-top'), 10) + 100;if(is_form){form_content.find('form').css('opacity', 0);jQuery('#gform_wrapper_4').html(form_content.html());if(form_content.hasClass('gform_validation_error')){jQuery('#gform_wrapper_4').addClass('gform_validation_error');} else {jQuery('#gform_wrapper_4').removeClass('gform_validation_error');}setTimeout( function() { \/* delay the scroll by 50 milliseconds to fix a bug in chrome *\/ jQuery(document).scrollTop(jQuery('#gform_wrapper_4').offset().top - mt); }, 50 );if(window['gformInitDatepicker']) {gformInitDatepicker();}if(window['gformInitPriceFields']) {gformInitPriceFields();}var current_page = jQuery('#gform_source_page_number_4').val();gformInitSpinner( 4, 'https:\/\/www.coleggwent.ac.uk\/wp-content\/plugins\/gravityforms\/images\/spinner.svg', true );jQuery(document).trigger('gform_page_loaded', [4, current_page]);window['gf_submitting_4'] = false;}else if(!is_redirect){var confirmation_content = jQuery(this).contents().find('.GF_AJAX_POSTBACK').html();if(!confirmation_content){confirmation_content = contents;}jQuery('#gform_wrapper_4').replaceWith(confirmation_content);jQuery(document).scrollTop(jQuery('#gf_4').offset().top - mt);jQuery(document).trigger('gform_confirmation_loaded', [4]);window['gf_submitting_4'] = false;wp.a11y.speak(jQuery('#gform_confirmation_message_4').text());}else{jQuery('#gform_4').append(contents);if(window['gformRedirect']) {gformRedirect();}}jQuery(document).trigger(\"gform_pre_post_render\", [{ formId: \"4\", currentPage: \"current_page\", abort: function() { this.preventDefault(); } }]);        if (event && event.defaultPrevented) {                return;        }        const gformWrapperDiv = document.getElementById( \"gform_wrapper_4\" );        if ( gformWrapperDiv ) {            const visibilitySpan = document.createElement( \"span\" );            visibilitySpan.id = \"gform_visibility_test_4\";            gformWrapperDiv.insertAdjacentElement( \"afterend\", visibilitySpan );        }        const visibilityTestDiv = document.getElementById( \"gform_visibility_test_4\" );        let postRenderFired = false;        function triggerPostRender() {            if ( postRenderFired ) {                return;            }            postRenderFired = true;            gform.core.triggerPostRenderEvents( 4, current_page );            if ( visibilityTestDiv ) {                visibilityTestDiv.parentNode.removeChild( visibilityTestDiv );            }        }        function debounce( func, wait, immediate ) {            var timeout;            return function() {                var context = this, args = arguments;                var later = function() {                    timeout = null;                    if ( !immediate ) func.apply( context, args );                };                var callNow = immediate && !timeout;                clearTimeout( timeout );                timeout = setTimeout( later, wait );                if ( callNow ) func.apply( context, args );            };        }        const debouncedTriggerPostRender = debounce( function() {            triggerPostRender();        }, 200 );        if ( visibilityTestDiv && visibilityTestDiv.offsetParent === null ) {            const observer = new MutationObserver( ( mutations ) => {                mutations.forEach( ( mutation ) => {                    if ( mutation.type === 'attributes' && visibilityTestDiv.offsetParent !== null ) {                        debouncedTriggerPostRender();                        observer.disconnect();                    }                });            });            observer.observe( document.body, {                attributes: true,                childList: false,                subtree: true,                attributeFilter: [ 'style', 'class' ],            });        } else {            triggerPostRender();        }    } );} );\n<\/script>\n    <\/div>\n<\/section>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-3614","page","type-page","status-publish","hentry"],"pp_statuses_selecting_workflow":false,"pp_workflow_action":"current","pp_status_selection":"publish","pp_force_visibility":null,"pp_subpost_visibility":null,"pp_inherited_force_visibility":null,"pp_inherited_subpost_visibility":null,"pp_post_mime_type":"","acf":[],"_links":{"self":[{"href":"https:\/\/www.coleggwent.ac.uk\/cy\/wp-json\/wp\/v2\/pages\/3614","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.coleggwent.ac.uk\/cy\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.coleggwent.ac.uk\/cy\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.coleggwent.ac.uk\/cy\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.coleggwent.ac.uk\/cy\/wp-json\/wp\/v2\/comments?post=3614"}],"version-history":[{"count":5,"href":"https:\/\/www.coleggwent.ac.uk\/cy\/wp-json\/wp\/v2\/pages\/3614\/revisions"}],"predecessor-version":[{"id":32478,"href":"https:\/\/www.coleggwent.ac.uk\/cy\/wp-json\/wp\/v2\/pages\/3614\/revisions\/32478"}],"wp:attachment":[{"href":"https:\/\/www.coleggwent.ac.uk\/cy\/wp-json\/wp\/v2\/media?parent=3614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}