code: function setAllowLabel () {
    var values = getCheckedAndUnchecked(
      form.allow.json, form.allow.yaml, form.allow.text, form.allow.empty, form.allow.unknown);
  
    switch (values.checked.length) {
      case 0:
        form.allow.label.text("No file types allowed");
        break;
      case 1:
        form.allow.label.text("Only allow " + values.checked[0] + " files");
        break;
      case 2:
        form.allow.label.text("Only allow " + values.checked[0] + " and " + values.checked[1]);
        break;
      case 3:
        form.allow.label.text("Don't allow " + values.unchecked[0] + " or " + values.unchecked[1]);
        break;
      case 4:
        form.allow.label.text("Don't allow " + values.unchecked[0] + " files");
        break;
      case 5:
        form.allow.label.text("Allow all file types");
    }
  }
docs: Sets the "allow" label, based on which options are selected