ResetFormAction

class ResetFormAction(fieldNames: List<String>, excludeFormFields: Boolean, subActions: List<Action> = emptyList()) : AbstractFormAction

Resets one or more form fields to their default value.

Parameters

fieldNames

The names of the form fields to reset (or exclude, depending on excludeFormFields).

excludeFormFields

If true, all fields except those named in fieldNames are reset. If false, only the fields named in fieldNames are reset.

subActions

Additional actions to execute after this action completes.

Constructors

Link copied to clipboard
constructor(fieldNames: List<String>, excludeFormFields: Boolean, subActions: List<Action> = emptyList())
constructor(formFields: List<FormField>, excludeFormFields: Boolean)

Creates a ResetFormAction from a list of form fields.

Properties

Link copied to clipboard
open override val type: ActionType

Returns type of action to make down-casting easier.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Checks equality based on field names and the exclude flag.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code based on the field names and exclude flag.

Link copied to clipboard
open override fun shouldExcludeFormFields(): Boolean

Indicates whether to include form fields in fieldNames in the action or exclude them.

Link copied to clipboard
open override fun toString(): String

Returns a string representation including field names and the exclude flag.