Skip to content

Instantly share code, notes, and snippets.

@michaelbrazell
Created December 9, 2015 16:14
Show Gist options
  • Save michaelbrazell/422d39e09ac8fe626154 to your computer and use it in GitHub Desktop.
Save michaelbrazell/422d39e09ac8fe626154 to your computer and use it in GitHub Desktop.
Json of a Gravity forms form output
{
"status": 200,
"response": {
"1000": false,
"28": {
"title": "Test Form",
"description": "",
"labelPlacement": "top_label",
"descriptionPlacement": "below",
"button": {
"type": "text",
"text": "Submit",
"imageUrl": ""
},
"fields": [
{
"type": "name",
"id": 1,
"label": "Name",
"adminLabel": "",
"isRequired": false,
"size": "medium",
"errorMessage": "",
"nameFormat": "advanced",
"inputs": [
{
"id": "1.2",
"label": "Prefix",
"name": "",
"choices": [
{
"text": "Mr.",
"value": "Mr.",
"isSelected": false,
"price": ""
},
{
"text": "Mrs.",
"value": "Mrs.",
"isSelected": false,
"price": ""
},
{
"text": "Miss",
"value": "Miss",
"isSelected": false,
"price": ""
},
{
"text": "Ms.",
"value": "Ms.",
"isSelected": false,
"price": ""
},
{
"text": "Dr.",
"value": "Dr.",
"isSelected": false,
"price": ""
},
{
"text": "Prof.",
"value": "Prof.",
"isSelected": false,
"price": ""
},
{
"text": "Rev.",
"value": "Rev.",
"isSelected": false,
"price": ""
}
],
"isHidden": true,
"inputType": "radio"
},
{
"id": "1.3",
"label": "First",
"name": ""
},
{
"id": "1.4",
"label": "Middle",
"name": "",
"isHidden": true
},
{
"id": "1.6",
"label": "Last",
"name": ""
},
{
"id": "1.8",
"label": "Suffix",
"name": "",
"isHidden": true
}
],
"formId": 28,
"pageNumber": 1,
"description": "",
"allowsPrepopulate": false,
"inputMask": false,
"inputMaskValue": "",
"inputType": "",
"labelPlacement": "",
"descriptionPlacement": "",
"subLabelPlacement": "",
"placeholder": "",
"cssClass": "",
"inputName": "",
"adminOnly": false,
"noDuplicates": false,
"defaultValue": "",
"choices": "",
"conditionalLogic": "",
"displayOnly": ""
},
{
"type": "text",
"id": 2,
"label": "Testing",
"adminLabel": "",
"isRequired": false,
"size": "medium",
"errorMessage": "",
"inputs": null,
"formId": 28,
"pageNumber": 1,
"description": "",
"allowsPrepopulate": false,
"inputMask": false,
"inputMaskValue": "",
"inputType": "",
"labelPlacement": "",
"descriptionPlacement": "",
"subLabelPlacement": "",
"placeholder": "",
"cssClass": "",
"inputName": "",
"adminOnly": false,
"noDuplicates": false,
"defaultValue": "",
"choices": "",
"conditionalLogic": "",
"displayOnly": "",
"multipleFiles": false,
"maxFiles": "",
"calculationFormula": "",
"calculationRounding": "",
"enableCalculation": "",
"disableQuantity": false,
"displayAllCategories": false
},
{
"type": "text",
"id": 3,
"label": "Text 2",
"adminLabel": "",
"isRequired": false,
"size": "medium",
"errorMessage": "",
"inputs": null,
"labelPlacement": "",
"descriptionPlacement": "",
"subLabelPlacement": "",
"placeholder": "",
"multipleFiles": false,
"maxFiles": "",
"calculationFormula": "",
"calculationRounding": "",
"enableCalculation": "",
"disableQuantity": false,
"displayAllCategories": false,
"inputMask": false,
"inputMaskValue": "",
"allowsPrepopulate": false,
"formId": 28,
"pageNumber": 1,
"description": "",
"inputType": "",
"cssClass": "",
"inputName": "",
"adminOnly": false,
"noDuplicates": false,
"defaultValue": "",
"choices": "",
"conditionalLogic": ""
}
],
"version": "1.9.10.12",
"id": 28,
"useCurrentUserAsAuthor": true,
"postContentTemplateEnabled": false,
"postTitleTemplateEnabled": false,
"postTitleTemplate": "",
"postContentTemplate": "",
"lastPageButton": null,
"pagination": null,
"firstPageCssClass": null,
"notifications": {
"557b09f4495a0": {
"id": "557b09f4495a0",
"to": "{admin_email}",
"name": "Admin Notification",
"event": "form_submission",
"toType": "email",
"subject": "New submission from {form_title}",
"message": "{all_fields}"
}
},
"confirmations": {
"557b09f457c1b": {
"id": "557b09f457c1b",
"name": "Default Confirmation",
"isDefault": true,
"type": "message",
"message": "Thanks for contacting us! We will get in touch with you shortly.",
"url": "",
"pageId": "",
"queryString": ""
}
},
"is_active": "1",
"date_created": "2015-06-12 16:33:56",
"is_trash": "0"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment