//For loop to constantly check on the Table for ( var i=0; i < Column_1.value.length; i++) { //if there is something entered in the first column, then the following columns are required if (Column_1[i].value !== ""){ Column_2[i].required = true; Column_3[i].required = true; Column_4[i].required = true; } else { Column_1[i].required = false; Column_1l[i].value = null; Column_2[i].required = false; Column_2[i].value = null; Column_3[i].required = false; Column_3[i].value = null; Column_4[i].required = false; Column_4[i].value = null; } }