Lua Methods Reference > LuaField Methods > getFieldNames

getFieldNames
The getFieldNames method returns the names of the sub fields in the LuaField object.
Syntax
getFieldNames()
Returns
(Strings). The names of the sub fields. The strings can be assigned to a table. To map the return values to a table, surround the function call with braces. For example:
fieldnames = { field:getFieldNames() }