Lowdefy
Actions/Reset/

Reset

(void): void

The Reset actions resets a context to the state it was in just after the onInit event was executed. This clears the user's inputs.

The Reset action resets the state to the state before the onEnter event is executed, and the onEnter event is not executed after the reset happens. This might cause unexpected behavior if you used an onEnter event to initialize the state.

Parameters

The Reset action does not take any parameters.

Examples

A reset button:
- id: reset_button
  type: Button
  properties:
    title: Reset
  events:
    onClick:
      - id: reset
        type: Reset