get field.md

Get Field

The Get Field block retrieves information about a named field on a green screen. Leapwork derives ("invent") a field structure from the screen content so the block can search for a Field name and return details such as the field's position (row/column), its value, and related field attributes.

The Green Screen Recorder and green screen building blocks are available with Enterprise plans.

Fully expanded, the Get Field block shows the following properties:

Note: The screenshot on this page uses the Elegance Design, introduced in 2025.3. If you are using an earlier version, your layout may look different.

Quick-start

  1. Drag Get Field onto the canvas.

  2. Connect the block in the flow and set the required parameters Select Green Screen Element and Field name. You can optionally adjust other parameters such as Text fields, Use occurred, and Default timeout if needed.

  3. Run the flow when it's ready.

Building block parameters

Parameters

The green input connector triggers the block when the flow reaches it, and the green output connector triggers when the field information has been fetched successfully.

This parameter is mandatory.

To use a value from Text fields, right-click in Field name, select Insert token, and choose the field name.

This is typically used to branch the flow or to explicitly fail a case by linking it to a Fail block.

If the Default Timeout checkbox is not selected, the timeout is 10 seconds unless you change it manually. If it is selected, the Default timeout value from the flow settings (under Max. run time) is applied.

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.