resetForm

fun resetForm(fields: Collection<String>? = null, exclude: Boolean = false)(source)

Gives each selected field its default value (/DV) back, or no value when it has none, as a reset-form action and a script's resetForm do (ISO 32000-1, 12.7.5.3). A name selects that field and every field below it, so address selects address.street. With exclude, every field that the names do not select is reset instead. With no names at all, every field is reset. A push button and a signature keep theirs, and visibility and read-only changes stay (#439).


Performs a reset-form action: the fields it names, by name or by reference, or every field but those when its Include/Exclude flag is set, or every field when it names none. See the other resetForm.