How to enter text into an input field
One of the many web actions you can automate is entering text into an input field on a web page. There are several methods to do this, but the primary method we recommend is using the "Enter text" step.
# How to use the "Enter text" step to text
To automate text entry into a text field, use the Step Finder to search for "Enter" and then add the "Enter text" step.
How
- Click "Select" to choose the text field.
- Input the text to enter, or click "Insert data" to pass data into the input.
# How to insert line breaks
If you are looking to enter more than a single paragraph of text, you will probably want to add line breaks. For many fields, simply pressing 'Return' does add a line break, but on some websites or field types this isn't the case. Instead, entering a line break requires a particular key combination (for example, shift + enter). You can use the "Custom line break" feature to automatically transform your normal line breaks in Axiom.ai into the correct combination on the website.
For more information, take a look at "How to insert line breaks when entering text".
How
- In the "Enter text" step click "Custom line break".
- Record a short sequence of characters.
- In the "Text" field use that sequence to create line breaks instead of pressing Enter.
# Automate entering text with Javascript
If you are familiar with JavaScript or perhaps using ChatGPT to generate code, you can use our JavaScript step to enter text. We usually save this method as a last resort.