How to clear text from an Input Field


When automating form filling, you may encounter input fields that are already populated with default values. The "Enter text" step should clear those values automatically. However, if it does not, it can lead to messy results when the bot runs, especially if the existing value isn't cleared using the "Enter text" step.

But don't worry—this guide will show you a simple and effective way to clear those default values. All you need to do is use a combination of the "Click element" and "Press key(s)" steps.

Insert the following steps into your automation

Assuming you have a bot set up in axiom.ai. insert the following steps before the "Enter text" step you wish to enter a value with. Using the step finder add the following steps.

Clear an input before entering new text

To clear an input field before using an "Enter text" step, insert the following two steps directly beforehand:

  • Step 1.0 - Click element: Focus input
    • Select: Click "Select", highlight the input field you wish to clear, then press "Complete".
  • Step 2.0 - Press key(s): Clear value
    • Key: Press "Record", tap the right arrow key repeatedly (→→→→→→→→→→) to move the cursor to the end, then press delete (⌦⌦⌦⌦⌦⌦⌦⌦⌦). Click "Stop recording" when done.

💡 When you run the bot, you will see the cursor move to the right past the value and then back, deleting it. There are other useful shortcuts to discover.

That's it! Assuming your "Enter Text" step is next, the input field will now be cleared, and the new data will be entered without any issues.

Wrapping up

This is a simple way to clear prepopulated text in form automation. You can empty an input field by employing the "Click element" and "Press keys(s)" steps. This method enhances the reliability of your form automation tasks, helping you achieve accurate results with minimal effort.