Table: First Row is Required

Body

When you need to have at least one row filled in the table and you can't use the required button in the properties box of the table.  

In order to make this work, you need to have a trigger question preceding it. In this example the trigger is a Yes or No question.

if (Trigger_Name.value == 'Yes'){
  //if Yes is selected the columns in the first row is required
  ColumnA_Name[0].required = true;
  ColumnB_Name[0].required = true;
  ColumnC_Name[0].required = true;
  ColumnD_Name[0].required = true;


  //if Yes isn't selected the columns in the first row will not be required & value will be null
} else {
  ColumnA_Name[0].required = false;
  ColumnB_Name[0].required = false;
  ColumnC_Name[0].required = false;
  ColumnD_Name[0].required = false;
  ColumnA_Name[0].value = null;
  ColumnB_Name[0].value = null;
  ColumnC_Name[0].value = null;
  ColumnD_Name[0].value = null;
}

Details

Details

Article ID: 51453
Created
Tue 4/3/18 4:21 PM
Modified
Thu 4/12/18 11:33 AM