Auto-tools/Projects/CrossWeave/Test Format/Form Data

From MozillaWiki
< Auto-tools‎ | Projects‎ | CrossWeave‎ | Test Format
Revision as of 17:44, 27 May 2010 by Jgriffin (talk | contribs) (Created page with '== Test Format == A FormData asset list is an array of objects, each with the following properties: * '''fieldname''': required. * '''value''': required. * '''date''': the time…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Test Format

A FormData asset list is an array of objects, each with the following properties:

  • fieldname: required.
  • value: required.
  • date: the time the form data was used, expressed in hours from the present, so 0 means now, and -24 means 24 hours ago. Optional, defaults to 0.

For example:

 "formdata1": [
   { "fieldname": "testing", "value": "success", "date": -1 },
   { "fieldname": "testing", "value": "failure", "date": -2 },
   { "fieldname": "username", "value": "joe" }
 ]

Actions

FormData only supports all actions except modify.

Note 1, CrossWeave support the delete action for FormData, but Weave currently does not correctly sync deleted form data, see bug 568363.