Form Pemesanan Whatsapp

$(document).on('click','.send_form', function(){ var input_blanter = document.getElementById('wa_email'); /* Whatsapp Settings */ var walink = 'https://web.whatsapp.com/send', phone = '6281977094280', walink2 = 'Halo saya ingin ', text_yes = 'Terkirim.', text_no = 'Isi semua Formulir lalu klik Send.'; /* Smartphone Support */ if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { var walink = 'whatsapp://send'; } if("" != input_blanter.value){ /* Call Input Form */ var input_select1 = $("#wa_select :selected").text(), input_name1 = $("#wa_name").val(), input_email1 = $("#wa_email").val(), input_number1 = $("#wa_number").val(), input_url1 = $("#wa_url").val(), input_textarea1 = $("#wa_textarea").val(); /* Final Whatsapp URL */ var blanter_whatsapp = walink + '?phone=' + phone + '&text=' + walink2 + '%0A%0A' + '*Name* : ' + input_name1 + '%0A' + '*Email Address* : ' + input_email1 + '%0A' + '*Select Option* : ' + input_select1 + '%0A' + '*Input Number* : ' + input_number1 + '%0A' + '*URL/Link* : ' + input_url1 + '%0A' + '*Description* : ' + input_textarea1 + '%0A'; /* Whatsapp Window Open */ window.open(blanter_whatsapp,'_blank'); document.getElementById("text-info").innerHTML = ''+text_yes+''; } else { document.getElementById("text-info").innerHTML = ''+text_no+''; } });

Formulir Kontak

Nama

Email *

Pesan *

Cari Artikel