Skip to content

Instantly share code, notes, and snippets.

@AAlfare
Last active June 21, 2016 08:38
Show Gist options
  • Save AAlfare/855be7aac70506854ee9b860f14fce18 to your computer and use it in GitHub Desktop.
Save AAlfare/855be7aac70506854ee9b860f14fce18 to your computer and use it in GitHub Desktop.
Remote Form Example
{
"title": "Benutzer editieren",
"responseUrl": "https://...",
"action": "POST",
"sections": [
{
"title": "Name",
"rows": [
{
"id": "first_name",
"name": "user[first_name]",
"type": "textField",
"label": "Vorname",
"validation": {
"required": true
}
},
{
"id": "last_name",
"name": "user[last_name]",
"type": "textField",
"label": "Nachname",
"validation": {
"required": true
}
},
{
"id": "email",
"name": "user[email]",
"type": "email",
"label": "Email"
}
]
},
{
"title": "Adresse",
"rows": [
{
"id": "street",
"name": "user[street]",
"type": "textField",
"placeholder": "Straße"
},
{
"id": "zip",
"name": "user[zip]",
"type": "textField",
"placeholder": "PLZ"
},
{
"id": "city",
"name": "user[city]",
"type": "textField",
"placeholder": "Ort"
}
]
},
{
"rows": [
{
"id": "ads",
"name": "user[wantsAds]",
"type": "switch",
"label": "Werbung erwünscht"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment