Verifique se a entrada tem valor JavaScript

var myInput = document.getElementById("customx");
if (myInput && myInput.value) {
  alert("My input has a value!");
}
Adventurous Addax