Skip to content

Instantly share code, notes, and snippets.

@Thunderbird7
Last active November 14, 2016 13:25
Show Gist options
  • Save Thunderbird7/6662acd3f4e988f1c60982737e3ad28d to your computer and use it in GitHub Desktop.
Save Thunderbird7/6662acd3f4e988f1c60982737e3ad28d to your computer and use it in GitHub Desktop.
/* split page by page with key */
{
// key for page 1
"page1": [ /* key for page 1 */
{ /* form type input */
"type": "textfield",
"payload": {
"label": "Name",
"placeholder": "your name"
}
},
{ // form type choice (YES or NO)
"type": "choice",
"payload": {
"question": "But I must explain ??? ",
"options": [
"Yes",
"No"
]
}
},
{ // form type mulit-choice
"type": "multiple-choice",
"payload": {
"question": "Qui blanditiis praesentium ?",
"options": [
"cat",
"dog",
"pug",
"tiger",
"fish"
]
}
},
{ // form type picker to choose something
"type": "picker",
"payload": {
"label": "Type of Business",
"options": [
"Agriculture",
"Minning",
"Financial"
]
}
},
{ // form type group (grouping form for multiple format)
"type": "input-group",
"payload": {
"title": "Emploment Detail",
"subTitle": "It is a long established ",
"forms": [/*YOU CAN PUT ANOTHOR JSON FORM STRUC HERE*/]
}
],
"page2": [/*like as above*/]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment