Set Element Text

The Set Element Text block is used to enter values into editable fields within a Salesforce application. It supports standard input types like text fields, password fields, and grid cells in List or Table views. This block is automatically generated by the Salesforce Fusion Recorder when the user types into a form field during recording.

Note: This block only works in browser windows launched using the Salesforce Login block or during an active Salesforce recording session.

It allows both static and dynamic input and includes the option to press Enter after input is completed. You can also use it to populate fields inside tables or editable grids, enabling robust data-entry automation in Salesforce UI.

Fully expanded, the Salesforce Set Element Text block shows the following properties:

image-20251117-152008.png

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. Launch the Salesforce Fusion Recorder to begin capturing a new flow.

  2. Interact with the Salesforce UI, for this block, type into an input field during recording.

  3. Review and adjust the block’s parameters (e.g., Text value, Type, Press enter) within the Recorder.

  4. Click Save in the Recorder. The Set Element Text block will appear on the canvas with your configured values.

Building block parameters

Parameters
  • Block header: The green input connector triggers the block when the flow reaches it. The green output connector triggers when the text entry has completed successfully. The block title (for example “Set Customer Name”) can be renamed by double-clicking it and typing a new title.

  • Text value: The text to be entered into the input field. Can be a static string or a dynamic value linked via Text fields.

  • Text fields: Allows dynamic content to be inserted into the Text value using tokens. You can add one or more fields, rename them, and right-click to insert tokens into the main text input. This section does not include any input or output connectors.

  • Type: Determines how the input is treated.

    • Text: Visible character input.

    • Password: Hidden input for secure fields.

  • Press enter: When enabled, automatically presses Enter after typing the value. Useful for form submissions or moving focus.


  • Fail: Triggers if the field could not be found or interacted with. Allows error handling or branching logic if input fails.

  • Default timeout: Allows the block to inherit the flow’s default timeout. If unchecked, the local Timeout applies.

  • Timeout: Maximum wait time to locate and edit the field. Default is 10 seconds unless changed or overridden by Default timeout.

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.

Salesforce FAQ

Frequently asked questions about Salesforce

Salesforce Fusion Recorder

How to use the Salesforce Fusion Recorder