addField
The addField method adds a new field to the document.
Syntax
addField ( fieldname, fieldvalue )
Arguments
| Argument | Description |
|---|---|
fieldname
|
(string) The name of the field to add. |
fieldvalue
|
(string) The value to set for the field. |
Returns
(LuaField) A LuaField object representing the new field.