Set Text

The Set text block is used to define a reusable text value within an automation flow. This value can then be passed to other building blocks that require input, such as Type text, Get text, or Set UI Element Value. It is especially useful when the same value needs to be used in multiple places, or when working with dynamic content managed via tokens.

Unlike action blocks, Set text is not executed directly. It acts as a source of data, feeding downstream blocks that reference its value. See the HTTP Request and the Using the Clipboard to insert text lesson

Fully expanded, the Set text block shows the following properties:

image-20251118-085136.png


Quick-start

  1. Drag Set text onto the canvas.

  2. Enter a value in the Text value field.

  3. Reference this block in other blocks by inserting its output as a token.

  4. Run the flow when it’s ready.

Building block parameters

Parameters
  • Block header: This block has no green input or output connectors because it is not explicitly executed. It is used to set a text value and deliver it to other building blocks. The block title (“Set text”) can be renamed by double-clicking it and typing in a new title.

  • Text value: The text value to provide to other building blocks. It can contain tokens for values provided via Text fields. To insert a token, right-click and select Insert token.

  • Text fields: Stores key–value pairs that can be inserted as dynamic tokens into Text value via Insert token.

  • Type: Determines how the text should be treated. Options:

    • Text: Plain visible text, suitable for general input.

    • Password: Masks the text for secure handling. Password values cannot be read back once entered.

Resources

Topic

Description

Flows FAQ

Common questions about creating, running, and managing flows in Leapwork.

Flows Troubleshooting

Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork.