Lua Methods Reference > LuaField Methods

LuaField Methods

Topics in this Section

This section describes the methods provided by LuaField objects. A LuaField represents a single field in a document. You can retrieve LuaField objects for a document using the LuaDocument getField and getFields methods. In its simplest form a field has just a name and a value, but it can also contain sub-fields.
If you have a LuaField object called field you can call its methods using the ':' operator. For example:
field:addField(name, value)