Lua Methods Reference > LuaDocument Methods > setFieldValue

setFieldValue
The setFieldValue method sets the value of a field in a document. If the field does not exist, it is created. If the field already exists, the existing value is overwritten.
Syntax
setFieldValue( fieldname, newvalue )
Arguments