{
  "52dfd909a926eb2e3f123456": {
    "_id": "52dfd909a926eb2e3f123456",
    "description": "Small Form",
    "name": "Small Form",
    "updatedBy": "testing-admin@example.com",
    "pageRules": [

    ],
    "fieldRules": [

    ],
    "pages": [
      {
        "_id": "52dfd909a926eb2e3f000001",
        "name": "A Page",
        "fields": [
          {
            "fieldOptions": {
              "definition": {
                "defaultValue": ""
              }
            },
            "required": false,
            "type": "text",
            "name": "Text",
            "helpText": "Text",
            "_id": "52dfd93ee02b762d3f000001",
            "repeating": false
          },
          {
            "required": false,
            "type": "file",
            "name": "File",
            "helpText": "File",
            "_id": "52dfd93ee02b762d3f000002",
            "repeating": false
          }
        ]
      },
      {
        "name": "Page 2",
        "_id": "52dff729e02b762d3f000004",
        "fields": [
          {
            "required": false,
            "type": "text",
            "name": "Page 2 Text",
            "helpText": "Page 2 Text",
            "_id": "52dff729e02b762d3f000003",
            "repeating": false
          }
        ]
      }
    ],
    "lastUpdated": "2014-01-22T16:51:53.725Z",
    "dateCreated": "2014-01-22T14:43:21.806Z",
    "pageRef": {
      "52dfd909a926eb2e3f000001": 0,
      "52dff729e02b762d3f000004": 1
    },
    "fieldRef": {
      "52dfd93ee02b762d3f000001": {
        "page": 0,
        "field": 0
      },
      "52dfd93ee02b762d3f000002": {
        "page": 0,
        "field": 1
      },
      "52dff729e02b762d3f000003": {
        "page": 1,
        "field": 0
      }
    },
    "lastUpdatedTimestamp": 1390409513725,
    "appsUsingForm": 123,
    "submissionsToday": 1234,
    "submissionsTotal": 124125
  },
  "527d4539639f521e0a000004": {
    "updatedBy": "testing-admin@example.com",
    "name": "One of each please.",
    "description": "Testing all field types",
    "_id": "527d4539639f521e0a000004",
    "pageRules": [

    ],
    "fieldRules": [
      {
        "type": "hide",
        "_id": "57adaea2c94486873bb29789",
        "targetField": ["52cfc0a78a31bc1524000004"],
        "ruleConditionalStatements": [{
          "sourceField": "52cfc0a78a31bc1524000003",
          "restriction": "is",
          "sourceValue": "hideparagraph"
        }],
        "ruleConditionalOperator": "and",
        "relationType": "and"
      }
    ],
    "pages": [
      {
        "_id": "52cfc06765081b1624000001",
        "fields": [
          {
            "required": true,
            "type": "text",
            "name": "Text",
            "helpText": "Instructions",
            "_id": "52cfc0a78a31bc1524000003",
            "repeating": true
          },
          {
            "required": true,
            "type": "textarea",
            "name": "Paragraph",
            "helpText": "Instructions",
            "_id": "52cfc0a78a31bc1524000004",
            "repeating": true
          },
          {
            "required": true,
            "type": "number",
            "name": "Number",
            "helpText": "Instructions",
            "_id": "52cfc0a78a31bc1524000005",
            "repeating": true
          },
          {
            "required": true,
            "type": "emailAddress",
            "name": "Email",
            "helpText": "Instuctions",
            "_id": "52cfc0fb65081b1624000003",
            "repeating": true
          },
          {
            "required": true,
            "type": "url",
            "name": "Website",
            "helpText": "Instructions",
            "_id": "52cfc0fb65081b1624000004",
            "repeating": true
          },
          {
            "fieldOptions": {
              "definition": {
                "options": [
                  {
                    "label": "Select 1",
                    "checked": true
                  },
                  {
                    "label": "Select2",
                    "checked": false
                  }
                ],
                "include_blank_option": false
              }
            },
            "required": true,
            "type": "dropdown",
            "name": "Dropdown",
            "_id": "52cfc0fb65081b1624000005",
            "repeating": true
          },
          {
            "fieldOptions": {
              "definition": {
                "options": [
                  {
                    "label": "Radio 1",
                    "checked": true
                  },
                  {
                    "label": "Radio 2",
                    "checked": false
                  }
                ]
              }
            },
            "required": true,
            "type": "radio",
            "name": "Radio",
            "helpText": "Instructions",
            "_id": "52cfc1a865081b1624000006",
            "repeating": true
          },
          {
            "fieldOptions": {
              "definition": {
                "options": [
                  {
                    "label": "Check1",
                    "checked": true
                  },
                  {
                    "label": "Check2",
                    "checked": false
                  }
                ]
              }
            },
            "required": true,
            "type": "checkboxes",
            "name": "Checkboxes",
            "helpText": "Instructions",
            "_id": "52cfc1a865081b1624000007",
            "repeating": true
          },
          {
            "fieldOptions": {
              "definition": {
                "locationUnit": "eastnorth"
              }
            },
            "required": true,
            "type": "location",
            "name": "Location",
            "helpText": "Instructions",
            "_id": "52cfc1a865081b1624000008",
            "repeating": true
          },
          {
            "required": true,
            "type": "locationMap",
            "name": "Map",
            "helpText": "Instructions",
            "_id": "52cfc1a865081b1624000009",
            "repeating": true
          },
          {
            "required": true,
            "type": "file",
            "name": "File",
            "helpText": "File",
            "_id": "52cfc1a865081b162400000a",
            "repeating": true
          },
          {
            "required": true,
            "type": "photo",
            "name": "Photo",
            "helpText": "Instructions",
            "_id": "52cfc1a865081b162400000b",
            "repeating": true
          },
          {
            "required": true,
            "type": "signature",
            "name": "Sign",
            "helpText": "Instructions",
            "_id": "52cfc1a865081b162400000c",
            "repeating": true
          },
          {
            "required": false,
            "type": "sectionBreak",
            "name": "New Shiny Section",
            "helpText": "This is a new section",
            "_id": "52cfc1a865081b162400000d",
            "repeating": true
          },
          {
            "fieldOptions": {
              "definition": {
                "defaultValue": "a"
              }
            },
            "required": true,
            "type": "text",
            "name": "asfs",
            "helpText": "afasdf",
            "_id": "52cfc47c8a31bc1524000006",
            "repeating": true
          },
          {
            "required": true,
            "type": "dropdown",
            "name": "Dropdown",
            "fieldCode": null,
            "_id": "dropdownnoblank",
            "adminOnly": false,
            "fieldOptions": {
              "validation": {
                "validateImmediately": true
              },
              "definition": {
                "options": [
                  {
                    "label": "Option 1",
                    "checked": false
                  },
                  {
                    "label": "Option 2",
                    "checked": false
                  }
                ],
                "include_blank_option": false
              }
            },
            "repeating": false
          },
          {
            "required": true,
            "type": "dropdown",
            "name": "Dropdown",
            "fieldCode": null,
            "_id": "dropdownwithblank",
            "adminOnly": false,
            "fieldOptions": {
              "validation": {
                "validateImmediately": true
              },
              "definition": {
                "options": [
                  {
                    "label": "Option 1",
                    "checked": false
                  },
                  {
                    "label": "Option 2",
                    "checked": false
                  }
                ],
                "include_blank_option": true
              }
            },
            "repeating": false
          },
          {
            "fieldOptions": {
              "definition": {
                "options": [
                  {
                    "label": "Check1",
                    "checked": true
                  },
                  {
                    "label": "Check2",
                    "checked": false
                  }
                ]
              }
            },
            "required": true,
            "type": "checkboxes",
            "name": "Checkboxes",
            "helpText": "Instructions",
            "_id": "checkboxes_id",
            "repeating": false
          }
        ]
      }
    ],
    "lastUpdated": "2014-01-10T09:59:24.168Z",
    "dateCreated": "2014-01-10T09:41:59.411Z",
    "pageRef": {
      "52cfc06765081b1624000001": 0
    },
    "fieldRef": {
      "52cfc0a78a31bc1524000003": {
        "page": 0,
        "field": 0
      },
      "52cfc0a78a31bc1524000004": {
        "page": 0,
        "field": 1
      },
      "52cfc0a78a31bc1524000005": {
        "page": 0,
        "field": 2
      },
      "52cfc0fb65081b1624000003": {
        "page": 0,
        "field": 3
      },
      "52cfc0fb65081b1624000004": {
        "page": 0,
        "field": 4
      },
      "52cfc0fb65081b1624000005": {
        "page": 0,
        "field": 5
      },
      "52cfc1a865081b1624000006": {
        "page": 0,
        "field": 6
      },
      "52cfc1a865081b1624000007": {
        "page": 0,
        "field": 7
      },
      "52cfc1a865081b1624000008": {
        "page": 0,
        "field": 8
      },
      "52cfc1a865081b1624000009": {
        "page": 0,
        "field": 9
      },
      "52cfc1a865081b162400000a": {
        "page": 0,
        "field": 10
      },
      "52cfc1a865081b162400000b": {
        "page": 0,
        "field": 11
      },
      "52cfc1a865081b162400000c": {
        "page": 0,
        "field": 12
      },
      "52cfc1a865081b162400000d": {
        "page": 0,
        "field": 13
      },
      "52cfc47c8a31bc1524000006": {
        "page": 0,
        "field": 14
      },
      "dropdownnoblank": {
        "page": 0,
        "field": 15
      },
      "dropdownwithblank": {
        "page": 0,
        "field": 16
      },
      "checkboxes_id":{
        "page": 0,
        "field": 17
      }
    },
    "lastUpdatedTimestamp": 1389347964168,
    "appsUsingForm": 123,
    "submissionsToday": 1234,
    "submissionsTotal": 124125
  },
  "52efeb30538082e229000002": {
    "_id": "52efeb30538082e229000002",
    "description": "testForm",
    "name": "testForm",
    "updatedBy": "testing-admin@example.com",
    "subscribers": [

    ],
    "pageRules": [

    ],
    "fieldRules": [
      {
        "type": "skip",
        "targetField": ["52efeb62538082e229000004", "52efeb9c538082e229000006"],
        "_id": "52fa375c1e680d9654ea2f6d",
        "ruleConditionalStatements": [
          {
            "sourceField": "52efeb62538082e229000003",
            "restriction": "contains",
            "sourceValue": "abc"
          }
        ],
        "ruleConditionalOperator": "and",
        "relationType": "and"
      }
    ],
    "pages": [
      {
        "_id": "52efeb30538082e229000001",
        "fields": [
          {
            "required": false,
            "type": "location",
            "fieldCode": "code1",
            "name": "LOCN",
            "_id": "52efeb62538082e229000333",
            "repeating": false,
            "fieldOptions": {
              "definition": {
                "locationUnit": "eastnorth"
              },
              "validation": {}
            }
          },
          {
            "required": false,
            "type": "text",
            "fieldCode": "code2",
            "name": "Text",
            "_id": "52efeb62538082e229000003",
            "repeating": true,
            "fieldOptions": {
              "definition": {
                "minRepeat": 1,
                "maxRepeat": 5
              },
              "validation": {}
            }
          },
          {
            "fieldOptions": {
              "definition": {
                "options": [
                  {
                    "label": "Rad1",
                    "checked": false
                  },
                  {
                    "label": "Rad2",
                    "checked": false
                  }
                ]
              }
            },
            "required": false,
            "fieldCode": "code3",
            "type": "radio",
            "name": "Radio",
            "_id": "52efeb62538082e229000004",
            "repeating": false
          },
          {
            "fieldOptions": {
              "definition": {
                "options": [
                  {
                    "label": "Ch1",
                    "checked": false
                  },
                  {
                    "label": "Ch2",
                    "checked": false
                  }
                ]
              }
            },
            "required": false,
            "type": "checkboxes",
            "fieldCode": "code4",
            "name": "Checkboxes",
            "_id": "52efeb9c538082e229000005",
            "repeating": false
          },
          {
            "required": false,
            "type": "photo",
            "fieldCode": "code5",
            "name": "Photo",
            "_id": "52efeb9c538082e229000006",
            "repeating": false
          },
          {
            "required": false,
            "type": "file",
            "fieldCode": "code6",
            "name": "File",
            "_id": "52efeb9c538082e229000007",
            "repeating": false
          }
        ]
      }
    ],
    "lastUpdated": "2014-02-03T19:18:52.640Z",
    "dateCreated": "2014-02-03T19:17:04.109Z",
    "pageRef": {
      "52efeb30538082e229000001": 0
    },
    "fieldRef": {
      "52efeb62538082e229000333": {
        "page": 0,
        "field": 0
      },
      "52efeb62538082e229000003": {
        "page": 0,
        "field": 1
      },
      "52efeb62538082e229000004": {
        "page": 0,
        "field": 2
      },
      "52efeb9c538082e229000005": {
        "page": 0,
        "field": 3
      },
      "52efeb9c538082e229000006": {
        "page": 0,
        "field": 4
      },
      "52efeb9c538082e229000007": {
        "page": 0,
        "field": 5
      }
    },
    "lastUpdatedTimestamp": 1391455132640
  },
  "53146bf95a133733451cd35b": {
    "updatedBy": "stephen.long@feedhenry.com",
    "name": "Street Site Visit",
    "description": "Form used to fill out details for street repair",
    "_id": "53146bf95a133733451cd35b",
    "subscribers": [

    ],
    "pageRules": [

    ],
    "fieldRules": [

    ],
    "pages": [
      {
        "_id": "53146bf95a133733451cd35a",
        "fields": [
          {
            "required": true,
            "type": "text",
            "name": "Job Name",
            "_id": "53146c1f04e694ec1ad715b6",
            "repeating": false
          },
          {
            "required": true,
            "type": "textarea",
            "name": "Job Description",
            "_id": "53146c1f04e694ec1ad715b7",
            "repeating": false
          },

          {
            "required": true,
            "type": "textarea",
            "name": "Job Address",
            "_id": "53146c1f043694ef1ad715bh",
            "repeating": false
          },
          {
            "required": true,
            "type": "file",
            "name": "Attach Files",
            "_id": "53146c1f04e694ec1ad715b8",
            "repeating": false
          }
        ]
      }
    ],
    "lastUpdated": "2014-03-03T11:48:47.150Z",
    "dateCreated": "2014-03-03T11:48:09.612Z",
    "pageRef": {
      "53146bf95a133733451cd35a": 0
    },
    "fieldRef": {
      "53146c1f04e694ec1ad715b6": {
        "page": 0,
        "field": 0
      },
      "53146c1f04e694ec1ad715b7": {
        "page": 0,
        "field": 1
      },
      "53146c1f043694ef1ad715bh": {
        "page": 0,
        "field": 2
      },
      "53146c1f04e694ec1ad715b8": {
        "page": 0,
        "field": 3
      }

    },
    "lastUpdatedTimestamp": 1393847327150,
    "appsUsingForm": 123,
    "submissionsToday": 1234,
    "submissionsTotal": 124125
  },
  "53fdb9c22ab6c0b02a98c302": {
    "updatedBy": "testing-admin@example.com",
    "name": "test admin form",
    "description": "Form used to test admin fields",
    "_id": "53fdb9c22ab6c0b02a98c302",
    "subscribers": [],
    "pageRules": [],
    "fieldRules": [],
    "pages": [
      {
        "_id": "53fdb9c22ab6c0b02a98c301",
        "fields": [
          {
            "fieldOptions": {
              "validation": {
                "validateImmediately": true
              }
            },
            "required": true,
            "type": "text",
            "name": "Text non admin",
            "_id": "53fdb9d82ab6c0b02a98c303",
            "adminOnly": false,
            "repeating": false
          },
          {
            "fieldOptions": {
              "validation": {
                "validateImmediately": true
              }
            },
            "required": true,
            "type": "text",
            "name": "Text Admin",
            "_id": "53fdb9d82ab6c0b02a98c304",
            "adminOnly": true,
            "repeating": false
          }
        ]
      }
    ],
    "lastUpdated": "2014-08-27T10:58:32.893Z",
    "dateCreated": "2014-08-27T10:58:10.240Z",
    "pageRef": {
      "53fdb9c22ab6c0b02a98c301": 0
    },
    "fieldRef": {
      "53fdb9d82ab6c0b02a98c303": {
        "page": 0,
        "field": 0
      },
      "53fdb9d82ab6c0b02a98c304": {
        "page": 0,
        "field": 1
      }
    },
    "lastUpdatedTimestamp": 1409137112893
  },
  "testfileformid": {
    "updatedBy": "testing-admin@example.com",
    "name": "test file form",
    "description": "Form used to test file fields",
    "_id": "testfileformid",
    "subscribers": [],
    "pageRules": [],
    "fieldRules": [],
    "pages": [
      {
        "_id": "53fdb9c22ab6c0b02a98c301",
        "fields": [
          {
            "required": false,
            "type": "file",
            "name": "Attach Files",
            "_id": "filefieldid",
            "repeating": true,
            "fieldOptions": {
              "definition": {
                "minRepeat": 1,
                "maxRepeat": 5
              }
            }
          },
          {
            "required": false,
            "type": "photo",
            "name": "Photo",
            "helpText": "Instructions",
            "_id": "photofieldid",
            "repeating": true
          }
        ]
      }
    ],
    "lastUpdated": "2014-08-27T10:58:32.893Z",
    "dateCreated": "2014-08-27T10:58:10.240Z",
    "pageRef": {
      "53fdb9c22ab6c0b02a98c301": 0
    },
    "fieldRef": {
      "filefieldid": {
        "page": 0,
        "field": 0
      },
      "photofieldid": {
        "page": 0,
        "field": 1
      }
    },
    "lastUpdatedTimestamp": 1409137112893
  },
  "testdatetimeform" :   {
    "_id": "testdatetimeform",
    "updatedBy": "user@example.com",
    "name": "Date Time Form",
    "createdBy": "testing-admin@example.com",
    "description": "das",
    "dataTargets": [],
    "subscribers": [],
    "pageRules": [],
    "fieldRules": [],
    "pages": [
      {
        "_id": "5734b98de8155e525e4733e2",
        "fields": [
          {
            "required": true,
            "type": "dateTime",
            "name": "datetime",
            "fieldCode": null,
            "_id": "datetimefieldwithformat",
            "adminOnly": false,
            "fieldOptions": {
              "validation": {
                "validateImmediately": true
              },
              "definition": {
                "datetimeUnit": "datetime",
                "dateTimeFormat": "DD-MM-YYYY HH:mm"
              }
            },
            "repeating": false
          },
          {
            "required": true,
            "type": "dateTime",
            "name": "date",
            "fieldCode": null,
            "_id": "dateonlyfield",
            "adminOnly": false,
            "fieldOptions": {
              "validation": {
                "validateImmediately": true
              },
              "definition": {
                "datetimeUnit": "date"
              }
            },
            "repeating": false
          },
          {
            "required": true,
            "type": "dateTime",
            "name": "time",
            "fieldCode": null,
            "_id": "timeonlyfield",
            "adminOnly": false,
            "fieldOptions": {
              "validation": {
                "validateImmediately": true
              },
              "definition": {
                "datetimeUnit": "time"
              }
            },
            "repeating": false
          },
          {
            "required": true,
            "type": "dateTime",
            "name": "datetime",
            "fieldCode": null,
            "_id": "datetimefieldnoformat",
            "adminOnly": false,
            "fieldOptions": {
              "validation": {
                "validateImmediately": true
              },
              "definition": {
                "datetimeUnit": "datetime"
              }
            },
            "repeating": false
          }
        ]
      }
    ],
    "lastUpdated": "2016-05-13T08:10:34.234Z",
    "dateCreated": "2016-05-12T17:31:22.084Z",
    "lastDataRefresh": "2016-05-13T08:10:34.234Z",
    "pageRef": {
      "5734b98de8155e525e4733e2": 0
    },
    "fieldRef": {
      "datetimefieldwithformat": {
        "page": 0,
        "field": 0
      },
      "dateonlyfield": {
        "page": 0,
        "field": 1
      },
      "timeonlyfield": {
        "page": 0,
        "field": 2
      },
      "datetimefieldnoformat": {
        "page": 0,
        "field": 3
      }
    },
    "lastUpdatedTimestamp": 1463127034234
  }
}
