Form Page






Form Page | Icitify Tech


Web Development Client Form


Please enter your name.


Please enter a valid email address.


Please select a project type.


Please enter a valid budget.


Please provide additional information.


// Get form values const name = document.getElementById("name").value; const email = document.getElementById("email").value; const project = document.getElementById("project").value; const budget = document.getElementById("budget").value; const message = document.getElementById("message").value;

// Validate name if (name === "") { document.getElementById("nameError").style.display = "block"; valid = false; }

// Validate email const emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/; if (!emailPattern.test(email)) { document.getElementById("emailError").style.display = "block"; valid = false; }

// Validate project type if (project === "") { document.getElementById("projectError").style.display = "block"; valid = false; }

// Validate budget if (budget <= 0 || isNaN(budget)) { document.getElementById("budgetError").style.display = "block"; valid = false; } // Validate message if (message === "") { document.getElementById("messageError").style.display = "block"; valid = false; } return valid; }


Form Page uu 1