The addField method adds a new field to the document.
addField ( fieldname, fieldvalue )
| Argument | Description |
|---|---|
fieldname
|
(string) The name of the field to add. |
fieldvalue
|
(string) The value to set for the field. |
|
|