{"id":51527,"date":"2024-10-29T12:55:43","date_gmt":"2024-10-29T11:55:43","guid":{"rendered":"https:\/\/bloemenbezorgenalmere.nl\/?page_id=51527"},"modified":"2024-12-16T18:36:00","modified_gmt":"2024-12-16T17:36:00","slug":"factuur-aanvragen","status":"publish","type":"page","link":"https:\/\/bloemenbezorgenalmere.nl\/en\/factuur-aanvragen\/","title":{"rendered":"Factuur aanvragen"},"content":{"rendered":"<iframe class=\"airtable-embed\" \n        src=\"https:\/\/airtable.com\/embed\/appEHN5nBzIj18Uen\/pagqrk1crO9pwyN2V\/form\" \n        frameborder=\"0\" width=\"100%\" height=\"1000\" \n        style=\"background: transparent; border: 1px solid #ccc;\">\n<\/iframe>\n\n<script>\n  \/\/ Functie om queryparameters uit de URL te lezen\n  function getQueryParam(param) {\n    const urlParams = new URLSearchParams(window.location.search);\n    return urlParams.get(param);\n  }\n\n  document.addEventListener(\"DOMContentLoaded\", function () {\n    \/\/ Basis Airtable-formulier URL\n    const baseURL = \"https:\/\/airtable.com\/embed\/appEHN5nBzIj18Uen\/pagqrk1crO9pwyN2V\/form\";\n\n    \/\/ Haal de queryparameters uit de pagina-URL\n    const bloemist = getQueryParam(\"bloemist\");\n    const email = getQueryParam(\"email\");\n    const bestelnummer = getQueryParam(\"bestelnummer\");\n\n    \/\/ Bouw de URL met prefill-parameters\n    let prefillURL = baseURL + \"?\";\n\n    if (bloemist) prefillURL += `prefill_Bloemist=${encodeURIComponent(bloemist)}&hide_Bloemist=true&`;\n    if (email) prefillURL += `prefill_Email=${encodeURIComponent(email)}&`;\n    if (bestelnummer) prefillURL += `prefill_Bestelnummer=${encodeURIComponent(bestelnummer)}&`;\n\n    \/\/ Verwijder de laatste '&' als er parameters zijn\n    prefillURL = prefillURL.replace(\/&$\/, '');\n\n    \/\/ Zoek naar het iframe met de class 'airtable-embed'\n    const iframe = document.querySelector('.airtable-embed');\n    if (iframe) {\n      iframe.src = prefillURL;\n    }\n  });\n<\/script>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_swt_meta_header_display":false,"_swt_meta_footer_display":false,"_swt_meta_site_title_display":true,"_swt_meta_sticky_header":false,"_swt_meta_transparent_header":false,"footnotes":""},"class_list":["post-51527","page","type-page","status-publish","hentry"],"raw_content":"<!-- wp:html -->\n<iframe class=\"airtable-embed\" \n        src=\"https:\/\/airtable.com\/embed\/appEHN5nBzIj18Uen\/pagqrk1crO9pwyN2V\/form\" \n        frameborder=\"0\" width=\"100%\" height=\"1000\" \n        style=\"background: transparent; border: 1px solid #ccc;\">\n<\/iframe>\n\n<script>\n  \/\/ Functie om queryparameters uit de URL te lezen\n  function getQueryParam(param) {\n    const urlParams = new URLSearchParams(window.location.search);\n    return urlParams.get(param);\n  }\n\n  document.addEventListener(\"DOMContentLoaded\", function () {\n    \/\/ Basis Airtable-formulier URL\n    const baseURL = \"https:\/\/airtable.com\/embed\/appEHN5nBzIj18Uen\/pagqrk1crO9pwyN2V\/form\";\n\n    \/\/ Haal de queryparameters uit de pagina-URL\n    const bloemist = getQueryParam(\"bloemist\");\n    const email = getQueryParam(\"email\");\n    const bestelnummer = getQueryParam(\"bestelnummer\");\n\n    \/\/ Bouw de URL met prefill-parameters\n    let prefillURL = baseURL + \"?\";\n\n    if (bloemist) prefillURL += `prefill_Bloemist=${encodeURIComponent(bloemist)}&hide_Bloemist=true&`;\n    if (email) prefillURL += `prefill_Email=${encodeURIComponent(email)}&`;\n    if (bestelnummer) prefillURL += `prefill_Bestelnummer=${encodeURIComponent(bestelnummer)}&`;\n\n    \/\/ Verwijder de laatste '&' als er parameters zijn\n    prefillURL = prefillURL.replace(\/&$\/, '');\n\n    \/\/ Zoek naar het iframe met de class 'airtable-embed'\n    const iframe = document.querySelector('.airtable-embed');\n    if (iframe) {\n      iframe.src = prefillURL;\n    }\n  });\n<\/script>\n<!-- \/wp:html -->\n\n<!-- wp:paragraph -->\n<p><\/p>\n<!-- \/wp:paragraph -->","_links":{"self":[{"href":"https:\/\/bloemenbezorgenalmere.nl\/en\/wp-json\/wp\/v2\/pages\/51527","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bloemenbezorgenalmere.nl\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/bloemenbezorgenalmere.nl\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/bloemenbezorgenalmere.nl\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bloemenbezorgenalmere.nl\/en\/wp-json\/wp\/v2\/comments?post=51527"}],"version-history":[{"count":5,"href":"https:\/\/bloemenbezorgenalmere.nl\/en\/wp-json\/wp\/v2\/pages\/51527\/revisions"}],"predecessor-version":[{"id":58404,"href":"https:\/\/bloemenbezorgenalmere.nl\/en\/wp-json\/wp\/v2\/pages\/51527\/revisions\/58404"}],"wp:attachment":[{"href":"https:\/\/bloemenbezorgenalmere.nl\/en\/wp-json\/wp\/v2\/media?parent=51527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}