{ "controllo": function() { var arr_est = new Array(); arr_est[0] = '.jpg$'; arr_est[1] = '.jpeg$'; arr_est[2] = '.gif$'; arr_est[3] = '.tif$'; arr_est[4] = '.tiff$'; arr_est[5] = '.xls$'; arr_est[6] = '.xlsx$'; arr_est[7] = '.doc$'; arr_est[8] = '.docx$'; arr_est[9] = '.pdf$'; arr_est[10] = '.png$'; if(jQuery(".chkbox input")[0]) { var chk = 0; var inputs = jQuery(".chkbox input"); for(var i = 0; i < inputs.length; i++) { if(jQuery(inputs[i]).prop( "checked" )){ chk = 1; } } if(jQuery('#branc_altro').val() != '') chk = 1; if(chk == 0) { alert('form.chk.alert'); return false; } } var mail = jQuery('#email'); var mail_conf = jQuery('#mail_conf'); if(mail.length && mail_conf.length && mail.val() != mail_conf.val()){ alert('form_pdf.mail.error'); return false; } // Gestione controllo sull'obbligatorieta' dei campi if( trim(document.getElementById('nome').value) == '' ) { alert('Questo campo è obbligatorio: Nome'); return false; } // Gestione controllo sull'obbligatorieta' dei campi if( trim(document.getElementById('cognome').value) == '' ) { alert('Questo campo è obbligatorio: Cognome'); return false; } // Gestione controllo sull'obbligatorieta' dei campi if( trim(document.getElementById('email').value) == '' ) { alert('Questo campo è obbligatorio: Email'); return false; } // Gestione controllo sui valori dei campi if( !checkEmail2(document.getElementById('email')) ) return false; // Gestione controllo sull'obbligatorieta' dei campi if( trim(document.getElementById('citta').value) == '' ) { alert('Questo campo è obbligatorio: Città'); return false; } // Gestione controllo sull'obbligatorieta' dei campi if( trim(document.getElementById('prov').value) == '' ) { alert('Questo campo è obbligatorio: Provincia'); return false; } // Per richiamare un oggetto memorizzato dal JSON usare nome_oggetto + "_save" js_formpdf_1454_10_1234_save.invio_mail(); }, "selectIndex": function(name, obj) { document.getElementById('txt_' + name + '_index').value = obj.selectedIndex; }, "invio_mail": function() { var strDati = ''; strDati = strDati + 'Nome: ' + document.getElementById('nome').value + '
'; strDati = strDati + 'Cognome: ' + document.getElementById('cognome').value + '
'; strDati = strDati + 'Email: ' + document.getElementById('email').value + '
'; strDati = strDati + 'Città: ' + document.getElementById('citta').value + '
'; strDati = strDati + 'Provincia: ' + document.getElementById('prov').value + '
'; strDati = strDati + 'Riduzione offerta da: ' + document.getElementById('riduzione').value + '
'; document.getElementById('dati').value = strDati; if( !document.getElementById('privacy').checked ) { alert('Bisogna accettare le clausole relative al trattamento dei dati personali.\nWe must accept the terms governing the processing of personal data.'); return; } if( confirm('I dati saranno usati per creare il COUPON per la fiera. Confermare l\'operazione?\nThe data will be used to create your entrance COUPON. Do you confirm?') ) { document.getElementById('frm_formpdf').submit(); } }, "check_reCaptcha": function() { grecaptcha.ready(function() { grecaptcha.execute('6LfN02wiAAAAAIPXFq4HrgTvjCgdQBE5iNI89zsj', {action: 'submit'}).then(function(token) { // Add your logic to submit to your backend server here. document.getElementById('g-recaptcha-response').value = token; loadJSON(document.getElementById('frm_formpdf').js_formpdf_1454_10_1234).controllo(); }); }); } }
Ottieni il tuo ingresso ridotto a euro 5,00
*Nome
*Cognome
*Email
*Città
*Provincia
Riduzione offerta da
*Sono interessato in qualita' di visitatore.
Con la compilazione e l'invio del presente Form acconsento al trattamento dei dati qui forniti per l'invio di materiale informativo sulle iniziative della mostra come da informativa privacy. / The data provided will be included in the data banks of Fiera Mi Piace Crea and treated in compliance with privacy policy about protection of personal Data.