Lua Methods Reference > LuaDocument Methods > getFieldNames

getFieldNames
The getFieldNames method returns all of the field names for the document.
Syntax
getFieldNames()
Returns
(Strings) The names of the fields. To map the return values to a table, surround the function call with braces. For example:
names = { document:getFieldNames() }