Developer documentation · schema 3.1.8GitHub
Fair3RFDF schema

Writing the schema

Conditional visibility

Section-level condition

{
  "id": "genes",
  "condition": {
    "type": "checkbox_includes",
    "field_id": "intervention_types",
    "value": "GENE"
  }
}

Field-level visibility

{
  "id": "allele_search",
  "visible_if": {
    "field": "gene_search",
    "not_empty": true,
    "taxon_not_in": ["8364", "9544"]
  }
}

Organism-trigger condition

{
  "id": "strain",
  "condition": {
    "type": "organism_trigger",
    "trigger": "strain_search"
  }
}

Edit this page on GitHub