Alta de Clientes – Beyond Service

Alta de Clientes

BEYOND SERVICE

Visitas: 0
`; } if(servicio === "Software"){ extraFields.innerHTML = `
`; } if(servicio === "Web"){ extraFields.innerHTML = `
`; } if(servicio === "Tienda"){ extraFields.innerHTML = `
`; } if(servicio === "Otros"){ extraFields.innerHTML = `
`; } } /* WHATSAPP */ document.getElementById("sendBtn").addEventListener("click", function(){ const nombreVal = document.getElementById("nombre").value.trim(); const emailVal = document.getElementById("email").value.trim(); const telefonoVal = document.getElementById("telefono").value.trim(); const cuitVal = document.getElementById("cuit").value.trim(); const empresaVal = document.getElementById("empresa").value.trim(); const servicioVal = servicioSelect.value; if(!nombreVal || !emailVal || !telefonoVal || !cuitVal || !servicioVal){ alert("Completar todos los campos obligatorios."); return; } let mensaje = "*Alta Cliente – Beyond Service*%0A%0A"; mensaje += "*Nombre:* " + nombreVal + "%0A"; mensaje += "*Email:* " + emailVal + "%0A"; mensaje += "*Teléfono:* " + telefonoVal + "%0A"; mensaje += "*CUIT/DNI:* " + cuitVal + "%0A"; mensaje += "*Empresa:* " + empresaVal + "%0A"; mensaje += "*Servicio:* " + servicioVal + "%0A%0A"; document.querySelectorAll("#extraFields input, #extraFields select, #extraFields textarea") .forEach(function(el){ const label = el.previousElementSibling.innerText; mensaje += "*" + label + ":* " + el.value + "%0A"; }); const phone = "5493512409405"; const url = "https://wa.me/" + phone + "?text=" + mensaje; window.open(url, "_blank"); showPaymentModal(); }); /* MODAL FUNCIONES */ function showPaymentModal(){ document.getElementById("paymentModal").style.display = "flex"; } function closeModal(){ document.getElementById("paymentModal").style.display = "none"; } function copyAlias(){ const alias = document.getElementById("aliasText").innerText; navigator.clipboard.writeText(alias); alert("Alias copiado al portapapeles."); }