Ask AI
Skip to main content

Clear form

Function: Clear form

This action allows you to instantly reset all input fields within the current form to their empty or default state. It's a quick way to prepare a form for new data entry or to discard any information that has been entered.

Input,

This action does not require any specific inputs. It operates directly on the form that is currently active.

Output,

This action does not produce any direct output. Its effect is a change in the state of the form fields.

Execution Flow,

Real-Life Examples,

Here are some practical scenarios where you might use the "Clear form" action:

  1. After Successful Submission:

    • Inputs: None
    • Result: After a user successfully submits an order form, the "Clear form" action is triggered to empty all fields, making the form ready for the next order without manual clearing.
  2. Adding a "Reset" Button:

    • Inputs: None
    • Result: You can add a "Reset" button to a complex registration form. When a user clicks this button, the "Clear form" action is executed, instantly clearing all entered data and allowing them to start over.
  3. Preparing for New Data Entry:

    • Inputs: None
    • Result: In a data entry application, after saving a record, you might automatically trigger "Clear form" to ensure the form is blank and ready for the details of the next record to be entered, preventing accidental overwrites.