var textarea = document.getElementById("textarea").value;

        // Perform validation for each input field
        if (!data.match(/[a-zA-Z0-9]+/)) {
          alert("Data must contain only letters and numbers");
          return false; // Prevent form submission
        }

        if (!phone.match(/[0-9]{10}/)) {
          alert("Phone number must be 10 digits");
          return false; // Prevent form submission
        }

        if (!isValidDate(calendar)) {
          alert("Invalid calendar value");