Table: Requiring Subsequent Columns

Body

//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; 
  }
}

Details

Details

Article ID: 51458
Created
Tue 4/3/18 4:25 PM
Modified
Thu 4/12/18 11:32 AM