Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 512 Bytes

forms.md

File metadata and controls

21 lines (16 loc) · 512 Bytes

Glider Forms

You can create a form widget like this:

{
  "type": "form",
  "submit_to": {
    "url": "https://api.anapi.com/v1/posts",
    "method": "post|put|patch"
  },
  "fields": [],
  "buttons": []
}

The submit_to property should define the API endpoint to send form responses to. Responses will be sent as JSON objects.

The fields property should contain form fields, as defined here.

The buttons property should contain buttons, as defined here.