Kauri Documentation
 PreviousHomeNext 
10.4 Forms ReferenceBook Index10.4.2 Forms API

10.4.1 Form configuration object

General sections

What goes into the form-config structure?

var fconf = {
  /* communication properties */
  "createURI": "${publicUri('service:/data/person/')}",

  /* described data structure */
  "members": {
    "name":    {   /* some string input */          },
    "sex" :    {   /* Male or Female choice */      },
    "birth:    {   /* date input */                 },
    "hobbies": {   /* flexible list of strings */   },
    "address": {   /* nested structure of street, number, zip, city and country */...}
  }  

  /* Additional custom types */
  "controlTypes": {
     "name-of-control": {  /*   definition */   }
  }
}
Form Specific properties

uri for create and read/write

Composite Control Config
Member Data Structure
Specific Config

(if any?)

Additional Custom Types

named, referable and extensible custom 'formatters, validators, fields and controls'

howto define?
howto use/refer?

 PreviousHomeNext 
10.4 Forms Reference10.4.2 Forms API