/* growform client2 bundle.url: https://assets.growform.co/c0fb756-mguwl632/form.bundle.js resolve.source: kv resolve.at: 2025-10-19T23:17:21.035Z form.source: api cache.age_ms: 0 kv.value_present: true fallback_used: false */ ;(function () { var EMBED_TYPE = "iFrame"; var FORM_ID = "663a9b4f8ae10e000bb77b0d"; var FORM_BUNDLE_URL = "https://assets.growform.co/c0fb756-mguwl632/form.bundle.js"; // injected by worker (KV/memory/fallback) var FORM_DATA = {"data":{"form":{"_id":"663a9b4f8ae10e000bb77b0d","steps":[{"id":"ac0ce1d8634334328d03ff33","name":"Number of panels","sortOrder":1,"copyOf":"8d53a2591d86a402dbecf0d3"},{"id":"60c2d61a66a74bcb70ce6e49","name":"Size of battery","sortOrder":2,"copyOf":"acd45227cac332d443c4e1db"},{"id":"acd45227cac332d443c4e1db","name":"Annual electricity usage","sortOrder":3},{"id":"b956ff1924e502109be9ef61","name":"Price per kWh","sortOrder":4,"copyOf":"acd45227cac332d443c4e1db"},{"id":"a3ee2894fbbae1032a90414e","name":"Address info","sortOrder":5},{"id":"ff4727c9498ef9c0a6c989d9","name":"Contact info","sortOrder":6}],"formName":"WY Solar & Battery - Leeds","fields":{"Decorative Header_52363373085874":{"type":"Decorative Header","value":"Thanks for your enquiry!","width":12,"step":"complete","sortOrder":1,"fieldStyle":{"fontSize":{"value":"22","unit":"px"},"fontWeight":"Bold"},"margins":{"marginTop":20},"stepId":"complete"},"Decorative Header_797442086161467":{"type":"Decorative Header","value":"Whats your annual electricity usage in kWh?","width":12,"step":2,"sortOrder":1,"fieldStyle":{"fontSize":{"value":19,"unit":"px"},"fontWeight":"Bold"},"stepId":"acd45227cac332d443c4e1db","margins":{"marginBottom":5}},"Decorative Header_576559560634956":{"type":"Decorative Header","value":"Great thanks. We can cover your area! ","width":12,"step":5,"sortOrder":1,"fieldStyle":{"fontSize":{"value":19,"unit":"px"},"fontWeight":"Bold"},"stepId":"ff4727c9498ef9c0a6c989d9","margins":{"marginBottom":5}},"email_907058157108782":{"type":"Email","label":"Your email address","width":12,"margins":{"marginBottom":0},"step":5,"sortOrder":4,"stepId":"ff4727c9498ef9c0a6c989d9"},"phone_589083232390193":{"type":"Phone","label":"Your Mobile number","width":12,"margins":{"marginBottom":0},"step":5,"sortOrder":5,"helperText":"","stepId":"ff4727c9498ef9c0a6c989d9","defaultCountryFormat":"gb"},"Decorative_Paragraph_194067845817258":{"type":"Decorative Paragraph","value":"Thanks for getting in touch. We'll be in contact soon with more information about your solar savings.","width":12,"step":"complete","sortOrder":2,"margins":{"marginBottom":60},"stepId":"complete"},"decorative_header_46751409231390":{"type":"Decorative Header","value":"Do you know how many solar panels you require?","width":12,"step":1,"sortOrder":1,"fieldStyle":{"fontSize":{"value":19,"unit":"px"},"fontWeight":"Bold"},"stepId":"ac0ce1d8634334328d03ff33","margins":{"marginBottom":0}},"buttons_782408809089103":{"type":"Buttons","validationRules":{"required":true},"label":"Number of panels","width":12,"hideLabel":true,"multiple":false,"options":[{"text":"Less than 10","image":null,"id":"92cf9db7a14ea74299c15df9"},{"text":"10-16","image":null,"id":"6b04250eb668f9d4d089985b"},{"text":"16+","image":null,"id":"80ccc04ec41a874eb49279d8"},{"text":"I Already Have Solar Panels","image":null,"id":"4e6a9d93ff8342cf62e5f010"},{"text":"Not Sure","image":null,"id":"ae0821e848945ccaa91764bd"}],"step":1,"sortOrder":2,"helperText":"","imageStyles":{"width":"37","marginBottom":"17","sq_imageOnlyMode":"No","size":"50%"},"buttonStyle":{"minWidth":"107","height":"102","buttonsPerRow":"4","buttonsType":"Rectangle","sq_buttonsPerRow":"3","sq_buttonsPerRowMobile":"2","spacing":15},"stepId":"ac0ce1d8634334328d03ff33","customCssClasses":"Number of panels"},"buttons_485431231808561":{"type":"Buttons","validationRules":{"required":true},"label":"Electricity bill","width":12,"multiple":false,"buttonStyle":{"rt_buttonsPerRow":2,"rt_buttonsPerRowMobile":1,"buttonsType":"Rectangle","spacing":20,"showControls":"Yes","rt_compactLayoutOnMobile":"Yes"},"options":[{"text":"Below 2,000 kWh","id":"7a1aa416126e2e2cbb386e98"},{"text":"2,000 - 3,500 kWh","image":null,"id":"d108ea5c5a147ade8d64d392"},{"text":"3,500 - 5,000 kWh","id":"8520042178329cb66678244d"},{"text":"5,000 - 10,000 kWh","id":"4538c1b5d2e2a8b4633b45a6"},{"text":"10,000 kWh +","image":null,"id":"c57e82084740f9f039565dc7"},{"text":"Not sure","image":null,"id":"47c444cf190684d0088a7d14"}],"stepId":"acd45227cac332d443c4e1db","sortOrder":2,"hideLabel":true},"decorative_header_892646863007116":{"type":"Decorative Header","value":"What size of Battery Storage are your looking for?","width":12,"step":2,"sortOrder":1,"fieldStyle":{"fontSize":{"value":19,"unit":"px"},"fontWeight":"Bold"},"stepId":"60c2d61a66a74bcb70ce6e49","margins":{"marginBottom":6}},"buttons_88398974892131":{"type":"Buttons","validationRules":{"required":true},"label":"Roof type","width":12,"multiple":false,"buttonStyle":{"rt_buttonsPerRow":2,"rt_buttonsPerRowMobile":1,"buttonsType":"Rectangle","spacing":20,"showControls":"Yes","rt_compactLayoutOnMobile":"Yes","sq_buttonsPerRow":"3"},"options":[{"text":"I don't want battery storage","id":"8520042178329cb66678244d","image":null},{"text":"5 kWh","id":"7a1aa416126e2e2cbb386e98","image":null},{"text":"10 kWh","id":"4538c1b5d2e2a8b4633b45a6","image":null},{"text":"15 kWh","image":null,"id":"913065523cb841bd28974b3c"},{"text":"20 kWh","image":null,"id":"3bfc3247bbfccf92bb540386"},{"text":"Not sure","image":null,"id":"ad50c235ee601b603c936b56"}],"stepId":"60c2d61a66a74bcb70ce6e49","sortOrder":2,"hideLabel":true,"imageStyles":{"rt_borderRadius":0,"size":"50%"}},"decorative_header_200115073747135":{"type":"Decorative Header","value":"What's your address & postcode?","width":12,"sortOrder":1,"stepId":"a3ee2894fbbae1032a90414e"},"decorative_header_696613943274675":{"type":"Decorative Header","value":"What price do you pay per kWh currently?","width":12,"step":2,"sortOrder":1,"fieldStyle":{"fontSize":{"value":19,"unit":"px"},"fontWeight":"Bold"},"stepId":"b956ff1924e502109be9ef61","margins":{"marginBottom":5}},"buttons_131764573910174":{"type":"Buttons","validationRules":{"required":true},"label":"Electricity bill","width":12,"multiple":false,"buttonStyle":{"rt_buttonsPerRow":2,"rt_buttonsPerRowMobile":1,"buttonsType":"Rectangle","spacing":20,"showControls":"Yes","rt_compactLayoutOnMobile":"Yes"},"options":[{"text":"£0.25","id":"7a1aa416126e2e2cbb386e98"},{"text":"£0.25 - £0.28","image":null,"id":"d108ea5c5a147ade8d64d392"},{"text":"£0.29 - £0.33","id":"8520042178329cb66678244d"},{"text":"£0.34+","id":"4538c1b5d2e2a8b4633b45a6"},{"text":"Not sure","image":null,"id":"c57e82084740f9f039565dc7"}],"stepId":"b956ff1924e502109be9ef61","sortOrder":2,"hideLabel":true},"address_935910161523304":{"type":"Address","label":"What is your address?","width":6,"stepId":"a3ee2894fbbae1032a90414e","sortOrder":3,"validationRules":{"required":true}},"zipcode_968573506408736":{"type":"Zipcode","label":"What is your postcode?","zipcodeFieldFormat":"postcode_uk","width":6,"stepId":"a3ee2894fbbae1032a90414e","sortOrder":4},"decorative_paragraph_582137829691340":{"type":"Decorative Paragraph","value":"We will use this to determine if we can install in your area.","width":12,"stepId":"a3ee2894fbbae1032a90414e","sortOrder":2},"decorative_paragraph_143766626652393":{"type":"Decorative Paragraph","value":"Our team will analyse the information. Complete your information below and we will call you back to provide your quotation. ","width":12,"stepId":"ff4727c9498ef9c0a6c989d9","sortOrder":2},"name_70725412775543":{"type":"Name","label":"What is your name?","width":12,"hideLabel":true,"options":{"Firstname":{"value":null,"errorText":null,"validationRules":{"required":true}},"Lastname":{"value":null,"errorText":null,"validationRules":{"required":true}},"Prefix":{"value":null,"errorText":null}},"stepId":"ff4727c9498ef9c0a6c989d9","sortOrder":3,"hidePrefix":true}},"options":{"numberOfSteps":5,"dateFormat":"DD/MM/YYYY","progressBar":{"enable":true},"continueButton":{"continueText":"Next","submitText":"Submit","backText":"Back"},"customStyles":{"width":{"unit":"px","value":580},"parentContainerMinHeight":{"value":0,"unit":"px"},"parentBackgroundImage":{"imageInitialHeight":1362,"imageInitialWidth":2066,"imageHeight":1362,"imageWidth":2066,"imageUrl":"https://res.cloudinary.com/dqnjggegp/image/upload/v1597337140/uploads/qmsfk98ank3wfp1ehvyg.jpg"},"headerMarginTop":20,"parentBackgroundColor":"#ffffff","innerFormBackgroundColor":"#ffffff","innerFormBackgroundTransparency":"","primaryColor":"#cf447b","bodyTextColor":"#343434","parentContainerBackgroundType":"none","innerFormBackgroundType":"none","buttonBorderColor":"#ff7500","buttonColorSelected":"#ffa659","buttonBorderColorSelected":"#ff7500","footerMarginBottom":70,"errorColor":"#ff4e4e","buttonColor":"#ff7500","buttonTextColor":"#ffffff","inputLabelColor":"#a3a3a3","inputTextColor":"#000000","defaultFont":"Mulish","sq_buttonFont":"Poppins","sq_buttonFontSize":15,"showShadows":"Yes","sq_buttonTextColor":"#343434","sq_buttonColor":"#FFFFFF","sq_buttonColorSelected":"#FFFFFF","sq_buttonBorderColor":"#DADADA","sq_buttonBorderColorSelected":"primary","sq_buttonBannerColor":"#FFFFFF","rt_buttonFont":"Poppins","rt_buttonFontSize":15,"rt_buttonColor":"#FFFFFF","rt_buttonColorSelected":"#FFFFFF","rt_buttonTextColor":"#343434","rt_buttonBorderColor":"#DADADA","rt_buttonBorderColorSelected":"primary","inputLabelFont":"Poppins","inputFontSize":16,"continueSubmitButtonFontSize":15},"localization":{"dateFormat":"MM/DD/YYYY"},"exportTransparentBackground":false,"customScript":"","customRedirectUrls":[{"url":"https://solarleeds.co.uk/thank-you-3406"}],"actionOnSubmit":"redirect"},"ownedByUser":"65ad959f1d5e0e000b6aeac2","personalisation":{"form_related_to":"Solar"},"created":"2024-05-07T21:21:19.391Z","__v":0,"lastEdited":"2024-05-08T05:54:52.201Z","screenshotUrl":"https://res.cloudinary.com/dqnjggegp/image/upload/v1742498617/growform-production/form-screenshots/663a9b4f8ae10e000bb77b0d.png","leadsCount":2,"isActive":true},"accountIsActive":true,"accountIsFreeTrial":false}}; // ---- Utils ---- function safeJSONStringify(obj) { return JSON.stringify(obj) .replace(/<\/(script|style)/gi, '<\\/$1') .replace(//g, '--\\>') .replace(/\u2028/g, '\\u2028') .replace(/\u2029/g, '\\u2029'); } function preloadScript(href) { try { if (!href) return; if (document.querySelector('link[rel="preload"][href="' + href + '"]')) return; var l = document.createElement("link"); l.rel = "preload"; l.as = "script"; l.href = href; l.crossOrigin = ""; // allow cache reuse in iframe document.head.appendChild(l); } catch (_) {} } function parseQuery() { var out = {}; try { if (!window.location.search) return out; var usp = new URLSearchParams(window.location.search); usp.forEach(function (v, k) { out[k] = v; }); } catch (_) {} return out; } function buildIframeHTML(opts) { var html = '\n' + '\n' + '
\n' + ' \n' + ' \n' + ' \n' + '\n' + '\n' + ' \n' + ' \n' + '