National Finance

×

Tau Haoda

Introduction In Papua New Guinea, one of the most significant customary obligations arises when a loved one passes away. The expenses encompass various stages, from the time of death to the funeral home, daily expenses for the haus cry, repatriation of the deceased to the final resting place, and subsequent festivities. In this case study, […]

Tuaga Kempo

Introduction National Finance is dedicated to aiding fellow Papua New Guineans requiring financial assistance for medical purposes. In this case study, we will delve into how our financial expertise and loan offerings played a crucial role in helping Tuaga Kempa, a regular teacher, secure funds for his wife’s medical expenses. Background Tuaga Kempa serves as […]

document.addEventListener('wpcf7mailsent', function (event) { const form = event.target; const submitBtn = form.querySelector('input[type="submit"], button[type="submit"]'); if (submitBtn) { submitBtn.disabled = false; submitBtn.style.pointerEvents = 'auto'; submitBtn.style.opacity = '1'; submitBtn.value = 'Submit'; } }); // Re-enable after failed mail document.addEventListener('wpcf7mailfailed', function (event) { enableButton(event); }); // Re-enable after validation error document.addEventListener('wpcf7invalid', function (event) { enableButton(event); }); // Re-enable after spam/captcha error document.addEventListener('wpcf7spam', function (event) { enableButton(event); }); function enableButton(event) { const form = event.target; const submitBtn = form.querySelector('input[type="submit"], button[type="submit"]'); if (submitBtn) { submitBtn.disabled = false; submitBtn.style.pointerEvents = 'auto'; submitBtn.style.opacity = '1'; submitBtn.value = 'Submit'; } } }); document.addEventListener('wpcf7mailsent', function(event) { if (event.detail.status !== 'mail_sent') return; const formId = event.detail.contactFormId; const endpoint = "https://script.google.com/macros/s/AKfycbxGuDSR4xCcjqXS8uANxiUREsbkQxSNbSBWmR5xGGkxp5Nx0EhOFxT6yh-f3_2J3vJfXg/exec"; const formFields = { 14574: [ "firstname", "lastname", "employee_file_number", "contact_number", "current_loan", "loan_arrears", "preferred_time" ], 14482: [ "title", "firstname", "lastname", "dob", "employee", "employetype" ] }; if (!formFields[formId]) return; const data = {}; event.detail.inputs.forEach(function(input) { data[input.name] = input.value || ""; }); const formData = new FormData(); formData.append("secret", "MY_SUPER_SECRET_2026"); formFields[formId].forEach(function(field) { formData.append(field, data[field] || ""); }); formData.append("contact_form_id", formId); formData.append("page_url", window.location.href); fetch(endpoint, { method: "POST", body: formData }) .then(response => response.json()) .then(result => { console.log("Google Sheet Success:", result); }) .catch(error => { console.error("Google Sheet:", error); }); });
CHAT