Skip to content

Instantly share code, notes, and snippets.

@qustavo
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save qustavo/bfd7fe44d0d74f6653e8 to your computer and use it in GitHub Desktop.
Save qustavo/bfd7fe44d0d74f6653e8 to your computer and use it in GitHub Desktop.
complete-form.json
{
"title": "My API Form",
"design_id": 23,
"fields": [
{
"type": "short_text",
"question": "This is a ShortTextField, What's your name? [ _Edit this text & press Build_ ]",
"description": "I'm sure you have a great name! ← [ _Edit this text & press Build_ ]",
"required": true
},
{
"type":"long_text",
"question":"This is a *LongTextField.* Tell us about yourself? ← [ _Edit this text & press Build_ ]"
},
{
"type":"multiple_choice",
"question":"This is a *MultipleChoiceField:* What is your favorite fruit? ← [ _Edit this text & press Build_ ]",
"choices": [
{"label":"Banana"},
{"label":"Pear"},
{"label":"Apple"},
{"label":"Pineapple"},
{"label":"Peach"},
{"label":"Strawberry"}
],
"allow_multiple_selections": true
},
{
"type":"picture_choice",
"question":"This is a *PictureChoiceField:* Where are you heading?← [ _Edit this text & press Build _]",
"choices": [
{"label":"NW", "image_id": 36},
{"label":"NE", "image_id": 37},
{"label":"SE", "image_id": 38},
{"label":"SW", "image_id": 39}
]
},
{
"type":"statement",
"question":"*This is a StatementField*. Good so far. Let's carry on then... ← [ _Edit this text & press Build_ ]",
"description":"Whoopty doo! ← [ _Edit this text & press Build_ ]"
},
{
"type":"dropdown",
"question":"*This is a DropDownField*. Which country do you live in? ← [ _Edit this text & press Build_ ]",
"choices": [
{"label": "Afghanistan"},
{"label": "Albania"},
{"label": "Algeria"},
{"label": "Andorra"},
{"label": "Angola"},
{"label": "Antigua & Deps"},
{"label": "Argentina"},
{"label": "Armenia"},
{"label": "Australia"},
{"label": "Austria"},
{"label": "Azerbaijan"},
{"label": "Bahamas"},
{"label": "Bahrain"},
{"label": "Bangladesh"},
{"label": "Barbados"},
{"label": "Belarus"},
{"label": "Belgium"},
{"label": "Belize"},
{"label": "Benin"},
{"label": "Bhutan"},
{"label": "Bolivia"},
{"label": "Bosnia Herzegovina"},
{"label": "Botswana"},
{"label": "Brazil"},
{"label": "Brunei"},
{"label": "Bulgaria"},
{"label": "Burkina"},
{"label": "Burundi"},
{"label": "Cambodia"},
{"label": "Cameroon"},
{"label": "Canada"},
{"label": "Cape Verde"},
{"label": "Central African Rep"},
{"label": "Chad"},
{"label": "Chile"},
{"label": "China"},
{"label": "Colombia"},
{"label": "Comoros"},
{"label": "Congo"},
{"label": "Congo {Democratic Rep}"},
{"label": "Costa Rica"},
{"label": "Croatia"},
{"label": "Cuba"},
{"label": "Cyprus"},
{"label": "Czech Republic"},
{"label": "Denmark"},
{"label": "Djibouti"},
{"label": "Dominica"},
{"label": "Dominican Republic"},
{"label": "East Timor"},
{"label": "Ecuador"},
{"label": "Egypt"},
{"label": "El Salvador"},
{"label": "Equatorial Guinea"},
{"label": "Eritrea"},
{"label": "Estonia"},
{"label": "Ethiopia"},
{"label": "Fiji"},
{"label": "Finland"},
{"label": "France"},
{"label": "Gabon"},
{"label": "Gambia"},
{"label": "Georgia"},
{"label": "Germany"},
{"label": "Ghana"},
{"label": "Greece"},
{"label": "Grenada"},
{"label": "Guatemala"},
{"label": "Guinea"},
{"label": "Guinea-Bissau"},
{"label": "Guyana"},
{"label": "Haiti"},
{"label": "Honduras"},
{"label": "Hungary"},
{"label": "Iceland"},
{"label": "India"},
{"label": "Indonesia"},
{"label": "Iran"},
{"label": "Iraq"},
{"label": "Ireland {Republic}"},
{"label": "Israel"},
{"label": "Italy"},
{"label": "Ivory Coast"},
{"label": "Jamaica"},
{"label": "Japan"},
{"label": "Jordan"},
{"label": "Kazakhstan"},
{"label": "Kenya"},
{"label": "Kiribati"},
{"label": "Korea North"},
{"label": "Korea South"},
{"label": "Kosovo"},
{"label": "Kuwait"},
{"label": "Kyrgyzstan"},
{"label": "Laos"},
{"label": "Latvia"},
{"label": "Lebanon"},
{"label": "Lesotho"},
{"label": "Liberia"},
{"label": "Libya"},
{"label": "Liechtenstein"},
{"label": "Lithuania"},
{"label": "Luxembourg"},
{"label": "Macedonia"},
{"label": "Madagascar"},
{"label": "Malawi"},
{"label": "Malaysia"},
{"label": "Maldives"},
{"label": "Mali"},
{"label": "Malta"},
{"label": "Marshall Islands"},
{"label": "Mauritania"},
{"label": "Mauritius"},
{"label": "Mexico"},
{"label": "Micronesia"},
{"label": "Moldova"},
{"label": "Monaco"},
{"label": "Mongolia"},
{"label": "Montenegro"},
{"label": "Morocco"},
{"label": "Mozambique"},
{"label": "Myanmar, {Burma}"},
{"label": "Namibia"},
{"label": "Nauru"},
{"label": "Nepal"},
{"label": "Netherlands"},
{"label": "New Zealand"},
{"label": "Nicaragua"},
{"label": "Niger"},
{"label": "Nigeria"},
{"label": "Norway"},
{"label": "Oman"},
{"label": "Pakistan"},
{"label": "Palau"},
{"label": "Panama"},
{"label": "Papua New Guinea"},
{"label": "Paraguay"},
{"label": "Peru"},
{"label": "Philippines"},
{"label": "Poland"},
{"label": "Portugal"},
{"label": "Qatar"},
{"label": "Romania"},
{"label": "Russian Federation"},
{"label": "Rwanda"},
{"label": "St Kitts & Nevis"},
{"label": "St Lucia"},
{"label": "Saint Vincent & the Grenadines"},
{"label": "Samoa"},
{"label": "San Marino"},
{"label": "Sao Tome & Principe"},
{"label": "Saudi Arabia"},
{"label": "Senegal"},
{"label": "Serbia"},
{"label": "Seychelles"},
{"label": "Sierra Leone"},
{"label": "Singapore"},
{"label": "Slovakia"},
{"label": "Slovenia"},
{"label": "Solomon Islands"},
{"label": "Somalia"},
{"label": "South Africa"},
{"label": "South Sudan"},
{"label": "Spain"},
{"label": "Sri Lanka"},
{"label": "Sudan"},
{"label": "Suriname"},
{"label": "Swaziland"},
{"label": "Sweden"},
{"label": "Switzerland"},
{"label": "Syria"},
{"label": "Taiwan"},
{"label": "Tajikistan"},
{"label": "Tanzania"},
{"label": "Thailand"},
{"label": "Togo"},
{"label": "Tonga"},
{"label": "Trinidad & Tobago"},
{"label": "Tunisia"},
{"label": "Turkey"},
{"label": "Turkmenistan"},
{"label": "Tuvalu"},
{"label": "Uganda"},
{"label": "Ukraine"},
{"label": "United Arab Emirates"},
{"label": "United Kingdom"},
{"label": "United States"},
{"label": "Uruguay"},
{"label": "Uzbekistan"},
{"label": "Vanuatu"},
{"label": "Vatican City"},
{"label": "Venezuela"},
{"label": "Vietnam"},
{"label": "Yemen"},
{"label": "Zambia"},
{"label": "Zimbabwe"}
]
},
{
"type":"yes_no",
"question":"*This is a YesNoField.* Are you happy? ← [ _Edit this text & press Build_ ]"
},
{
"type":"rating",
"question":"*This is a RatingField.* How would you rate us? ← [ _Edit this text & press Build_ ]"
},
{
"type":"opinion_scale",
"question":"*This is a OpinionScaleField.* Would you recommend us to a friend? ← [ _Edit this text & press Build_ ]"
},
{
"type":"number",
"question":"*This is a NumberField.* How old are you? ← [ _Edit this text & press Build_ ]"
},
{
"type":"email",
"question":"*This is an EmailField.* What's your email address? ← [ _Edit this text & press Build_ ]",
"description":"We promise not to spam you.  ← [ _Edit this text & press Build_ ]"
},
{
"type":"website",
"question":"*This is a WebsiteField.* What's your web address? ← [ _Edit this text & press Build_ ]",
"required":true
},
{
"type":"legal",
"question":"*This is a LegalField.* Please read and accept the terms... ← [ _Edit this text & press Build_ ]"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment