setValue

fun setValue(fieldName: String, value: String)

Sets the value shown for fieldName. Does nothing when the document has no such field, so a script that names a missing field cannot grow the state.