{"id":268,"date":"2022-09-29T10:19:49","date_gmt":"2022-09-29T10:19:49","guid":{"rendered":"https:\/\/ioncubed.com\/?page_id=268"},"modified":"2022-09-30T07:59:38","modified_gmt":"2022-09-30T07:59:38","slug":"booking-form","status":"publish","type":"page","link":"https:\/\/ioncubed.com\/index.php\/booking-form\/","title":{"rendered":"Booking Form"},"content":{"rendered":"<p>&nbsp;<\/p>\n<!--noptimize-->\n        <script type=\"text\/javascript\">\n         var cp_hourbk_cancel_label = 'Cancel';\n         var cp_hourbk_quantity_label = 'Quantity';\n         var message_ffile_accept = 'Please upload a valid file type';         \n         var cp_hourbk_message_ffile_size = 'File size exceeds limit';\n         var cp_hourbk_cost_label = 'Cost';\n         var cp_hourbk_overlapping_label = 'Selected time is no longer available. Please select a different time.';\n         var cp_hourbk_nomore_label = 'No more slots available.';\n         var cp_hourbk_preselect = '';\n         var cp_hourbk_cmpublic = true;\n         var cp_hourbk_avoid_overlapping = 0;         var apphboverbooking_handler0 = false;\n         function cp_appbooking_pform_doValidate_1(form)\n         { \n            $dexQuery = jQuery.noConflict();\n            try { document.cp_appbooking_pform_1.cp_ref_page.value = document.location; } catch (e) {}\n            $dexQuery = jQuery.noConflict();            {\n                var cpefb_error = 0;\n                $dexQuery(\"#cp_appbooking_pform_1\").find(\".cpefb_error\").each(function(index){\n                    if ($dexQuery(this).css(\"display\")!=\"none\")\n                        if ($dexQuery(this).html() != cp_hourbk_overlapping_label) cpefb_error++;  \n                    });               \n                if (cpefb_error==0)\n                {if (!apphboverbooking_handler0)\n                    {\n                        apphbblink_1(\".pbSubmit:visible\");\n                        $dexQuery(\"#cp_appbooking_pform_1\").find(\".avoid_overlapping_before\").not(\".ignore,.ignorepb\").each(function(){\n                            if ($dexQuery(this).parent().is(\":visible\")) $dexQuery(this).removeClass(\"avoid_overlapping_before\").removeClass(\"valid\").addClass(\"avoid_overlapping\");\n                        })\n                        cp_hourbk_avoid_overlapping = 1;\n                        try {\n                            $dexQuery(\"#cp_appbooking_pform_1\").find(\".avoid_overlapping\").valid();\n                        } catch (e) { cp_hourbk_avoid_overlapping = 0; }\n                        function check_cp_hourbk_avoid_overlapping(){\n\t\t                    if (cp_hourbk_avoid_overlapping>0)\n\t\t                        setTimeout(check_cp_hourbk_avoid_overlapping,100);\n\t\t                    else\n\t\t                    {\n                                var cpefb_error = 0;\n                                $dexQuery(\"#cp_appbooking_pform_1\").find(\".cpefb_error\").each(function(index){\n                                    if ($dexQuery(this).css(\"display\")!=\"none\")\n                                        cpefb_error++;    \n                                    });\n                                if (cpefb_error==0 && !apphboverbooking_handler0)    \n                                {\n                                    apphboverbooking_handler0 = true;\n                                    if (cp_appbooking_pform_doValidate_1(form))\n                                        document.getElementById(\"cp_appbooking_pform_1\").submit();                                }\n\t\t                    }  \n\t\t                }\n\t\t                check_cp_hourbk_avoid_overlapping();\n                        return false;\n                    }                    \n\t        \t\t$dexQuery(\"#cp_appbooking_pform_1\").find( '.ignore' ).closest( '.fields' ).remove();\n\t        \t}\n                if (cpefb_error) return false;\n\t        \tdocument.getElementById(\"form_structure_1\").value = '';    \n\t        \tdocument.getElementById(\"refpage_1\").value = document.location;    \n                try { if (document.cp_appbooking_pform_1.cp_appbooking_pform_status.value != '0')\n                return false; } catch (e) {}\n                apphbblink_1(\".pbSubmit:visible\");\n                try { document.cp_appbooking_pform_1.cp_appbooking_pform_status.value = '1';\t } catch (e) {}\n                $dexQuery(document).trigger(\"beforeOnSubmitAhb\",{id:\"cp_appbooking_pform_1\"});\n                return true;\n            }  \n         }\n         function apphbblink_1(selector){\n             try {   \n                 $dexQuery = jQuery.noConflict();\n                 $dexQuery(selector).fadeOut(1000, function(){\n                     $dexQuery(this).fadeIn(1000, function(){\n                             try {                     \n                                 if (document.cp_appbooking_pform_1.cp_appbooking_pform_status.value != '0')\n                                     apphbblink_1(this);                                  \n                             } catch (e) {}  \n                     });\n                 });             \n             } catch (e) {}                 \n         }         \n         function cp_appbooking_cerror_1(){$dexQuery = jQuery.noConflict();$dexQuery(\"#hdcaptcha_error_1\").css('top',$dexQuery(\"#hdcaptcha_cp_appbooking_post_1\").outerHeight());$dexQuery(\"#hdcaptcha_error_1\").css(\"display\",\"inline\");}\n        <\/script><!--\/noptimize-->\n        <form autocomplete=\"off\" class=\"cpp_form\" name=\"cp_appbooking_pform_1\" id=\"cp_appbooking_pform_1\" action=\"\" method=\"post\" enctype=\"multipart\/form-data\" onsubmit=\"return cp_appbooking_pform_doValidate_1(this);\"><input type=\"hidden\" name=\"cp_pform_psequence\" value=\"_1\" \/><input type=\"hidden\" name=\"cp_appbooking_pform_process\" value=\"1\" \/><input type=\"hidden\" name=\"cp_appbooking_id\" value=\"1\" \/><input type=\"hidden\" name=\"cp_ref_page\" value=\"\" \/><input type=\"hidden\" name=\"form_structure_1\" id=\"form_structure_1\" size=\"180\" value=\"[[{&quot;form_identifier&quot;:&quot;&quot;,&quot;name&quot;:&quot;fieldname1&quot;,&quot;shortlabel&quot;:&quot;&quot;,&quot;index&quot;:0,&quot;ftype&quot;:&quot;fapp&quot;,&quot;userhelp&quot;:&quot;&quot;,&quot;userhelpTooltip&quot;:&quot;&quot;,&quot;csslayout&quot;:&quot;&quot;,&quot;title&quot;:&quot;Please select the days site days that are required to be booked&quot;,&quot;services&quot;:[{&quot;name&quot;:&quot;Site Booking&quot;,&quot;price&quot;:1,&quot;capacity&quot;:1,&quot;duration&quot;:&quot;720&quot;,&quot;pb&quot;:0,&quot;pa&quot;:0,&quot;ohindex&quot;:0,&quot;idx&quot;:1}],&quot;openhours&quot;:[],&quot;allOH&quot;:[{&quot;name&quot;:&quot;Default&quot;,&quot;openhours&quot;:[{&quot;type&quot;:&quot;all&quot;,&quot;d&quot;:&quot;&quot;,&quot;h1&quot;:&quot;6&quot;,&quot;m1&quot;:&quot;0&quot;,&quot;h2&quot;:&quot;18&quot;,&quot;m2&quot;:&quot;0&quot;}]}],&quot;dateFormat&quot;:&quot;mm\\\/dd\\\/yy&quot;,&quot;showDropdown&quot;:false,&quot;showTotalCost&quot;:false,&quot;showTotalCostFormat&quot;:&quot;$ {0}&quot;,&quot;showEndTime&quot;:false,&quot;showQuantity&quot;:false,&quot;usedSlotsCheckbox&quot;:false,&quot;avoidOverlaping&quot;:true,&quot;emptySelectCheckbox&quot;:false,&quot;emptySelect&quot;:&quot;&quot;,&quot;dropdownRange&quot;:&quot;-10:+10&quot;,&quot;working_dates&quot;:[true,true,true,true,true,true,true],&quot;numberOfMonths&quot;:&quot;2&quot;,&quot;maxNumberOfApp&quot;:0,&quot;firstDay&quot;:0,&quot;minDate&quot;:&quot;0&quot;,&quot;maxDate&quot;:&quot;&quot;,&quot;defaultDate&quot;:&quot;&quot;,&quot;invalidDates&quot;:&quot;&quot;,&quot;tmpinvalidDates&quot;:&quot;&quot;,&quot;required&quot;:true,&quot;bSlotsCheckbox&quot;:true,&quot;bSlots&quot;:30,&quot;militaryTime&quot;:1,&quot;autonum&quot;:1,&quot;autonumStaff&quot;:0,&quot;fBuild&quot;:{},&quot;special_days&quot;:[],&quot;minDateTmp&quot;:&quot;0&quot;,&quot;getMinDate&quot;:{},&quot;tmpinvalidDatestime&quot;:[]},{&quot;form_identifier&quot;:&quot;&quot;,&quot;name&quot;:&quot;fieldname5&quot;,&quot;shortlabel&quot;:&quot;&quot;,&quot;index&quot;:1,&quot;ftype&quot;:&quot;ftext&quot;,&quot;userhelp&quot;:&quot;&quot;,&quot;userhelpTooltip&quot;:false,&quot;csslayout&quot;:&quot;&quot;,&quot;title&quot;:&quot;Please enter the Suburb and Province of the site, eg. Mobeni, DBN.&quot;,&quot;predefined&quot;:&quot;&quot;,&quot;predefinedClick&quot;:false,&quot;required&quot;:false,&quot;size&quot;:&quot;medium&quot;,&quot;minlength&quot;:&quot;&quot;,&quot;maxlength&quot;:&quot;&quot;,&quot;equalTo&quot;:&quot;&quot;,&quot;fBuild&quot;:{}},{&quot;form_identifier&quot;:&quot;&quot;,&quot;name&quot;:&quot;email&quot;,&quot;shortlabel&quot;:&quot;&quot;,&quot;index&quot;:2,&quot;ftype&quot;:&quot;femail&quot;,&quot;userhelp&quot;:&quot;&quot;,&quot;userhelpTooltip&quot;:&quot;&quot;,&quot;csslayout&quot;:&quot;&quot;,&quot;title&quot;:&quot;Please enter your email to book the site days chosen&quot;,&quot;predefined&quot;:&quot;&quot;,&quot;predefinedClick&quot;:false,&quot;required&quot;:true,&quot;size&quot;:&quot;medium&quot;,&quot;equalTo&quot;:&quot;&quot;,&quot;fBuild&quot;:{}},{&quot;form_identifier&quot;:&quot;&quot;,&quot;name&quot;:&quot;fieldname2&quot;,&quot;shortlabel&quot;:&quot;&quot;,&quot;index&quot;:3,&quot;ftype&quot;:&quot;fCommentArea&quot;,&quot;userhelp&quot;:&quot;This is a look ahead diary to aid planning site days. Please enter the location, ie. DBN, CT, JHB etc so that relevant site bookings can be grouped.&quot;,&quot;userhelpTooltip&quot;:false,&quot;csslayout&quot;:&quot;&quot;,&quot;title&quot;:&quot;Instructions for Site Booking&quot;,&quot;fBuild&quot;:{}}],[{&quot;title&quot;:&quot;&quot;,&quot;description&quot;:&quot;&quot;,&quot;formlayout&quot;:&quot;top_aligned&quot;,&quot;formtemplate&quot;:&quot;&quot;,&quot;evalequations&quot;:1,&quot;autocomplete&quot;:1,&quot;autofocus&quot;:false}]]\" \/><input type=\"hidden\" name=\"refpage_1\" id=\"refpage_1\" value=\"\"><input type=\"hidden\" name=\"cp_appbooking_pform_status\" value=\"0\" \/><input name=\"anonce\" type=\"hidden\" value=\"eaf866c9f8\"\/><div id=\"fbuilder\">    \r\n    <div id=\"fbuilder_1\">\r\n        <div id=\"formheader_1\"><\/div>\r\n        <div id=\"fieldlist_1\"><\/div>\r\n    <\/div>\r\n<\/div>    \r\n<div style=\"display:none\">\r\n<div id=\"cpcaptchalayer_1\" class=\"cpcaptchalayer\">\r\n <div class=\"fields\" id=\"field-c0\" style=\"display:none\">\r\n    <label><\/label>\r\n    <div class=\"dfield\"><!--addons-payment-options--><\/div>\r\n    <div class=\"clearer\"><\/div>\r\n <\/div><!--addons-payment-fields-->\r\n<style>#fbuilder .slots{display:none !important; }<\/style><style>.ahb_list_time .t {display:none !important; }<\/style><!-- rcadon -->\r\n<\/div>\r\n<\/div>\r\n<div id=\"cp_subbtn_1\" class=\"cp_subbtn\">Submit<\/div>\r\n<div style=\"clear:both;\"><\/div>\r\n<\/form>\r\n\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-268","page","type-page","status-publish","hentry"],"aioseo_notices":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ioncubed.com\/index.php\/wp-json\/wp\/v2\/pages\/268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ioncubed.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ioncubed.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ioncubed.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ioncubed.com\/index.php\/wp-json\/wp\/v2\/comments?post=268"}],"version-history":[{"count":2,"href":"https:\/\/ioncubed.com\/index.php\/wp-json\/wp\/v2\/pages\/268\/revisions"}],"predecessor-version":[{"id":449,"href":"https:\/\/ioncubed.com\/index.php\/wp-json\/wp\/v2\/pages\/268\/revisions\/449"}],"wp:attachment":[{"href":"https:\/\/ioncubed.com\/index.php\/wp-json\/wp\/v2\/media?parent=268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}