Cheatsheet part 4

Challenges

Solution

After you've completed all the steps in the tutorial, the final config is:

{
  "fields": [
    {
      "id": "doc_date",
      "type": "date",
      "anchor": "document date",
      "method": {
        "id": "label",
        "position": "below",
        "textAlignment": "right"
      }
    },
    {
      "id": "grand_total",
      "type": "currency",
      "anchor": "grand total",
      "method": {
        "id": "row",
        "tiebreaker": ">"
      }
    },
    {
      "id": "customer_address",
      "type": "address",
      "anchor": "prepared for",
      "method": {
        "id": "box"
      }
    },
    {
      "id": "reflective_finish",
      "anchor": "reflective",
      "method": {
        "id": "checkbox",
        "position": "left"
      }
    },
    {
      "id": "terms_paragraphs",
      "anchor": "subject to",
      "type": "paragraph",
      "method": {
        "id": "documentRange",
        "stop": {
          "type": "startsWith",
          "text": "in previous lessons"
        }
      }
    }
  ]
}

Learn more

Congratulations, you're done with the tutorials! Next steps: