$(function() { function waitForFieldLoaded(ms) { return new Promise(resolve => setTimeout(resolve, 100)); }
Notice: Undefined offset: 0 in /var/www/html/scripts/public_html/tnc24/indico/forms/validation/js-formfields.php on line 132

Notice: Trying to access array offset on value of type null in /var/www/html/scripts/public_html/tnc24/indico/forms/validation/js-formfields.php on line 132
//db_vars: //============= //============= var iboxdescription = '.i-box-header .i-box-description'; // checkbox async function setiboxDescription(){ while(!$(iboxdescription).length){ await waitForFieldLoaded(); } $( iboxdescription ).each(function( index ) { $(this).html($(this).text()); }); } setiboxDescription(); var parsingHtmlElements = ".regform-done-caption"; async function parseHtml(){ while(!$(parsingHtmlElements).length){ await waitForFieldLoaded(); } $(parsingHtmlElements).each(function(){ $(this).html($(this).text()); }); } parseHtml(); $('body').on('click', '#regformSubmit', function(e) { var prevent = false; // prevent form execution var message = []; // if (vat_checked == false ) { // message.push('Please provide correct VAT'); // prevent = true; // } if(prevent === true) { // prevent form exectution if required field are 'enabled' and 'empty' e.preventDefault(); e.stopImmediatePropagation(); alert(message.toString().replace(/,/g, '\n')); // display info } }); });