Get title on title ui element
Function: Get title on title UI element
This action helps you retrieve the text that is currently displayed as the title of a specific UI element on your application's layout. It's useful when you need to capture the text from a title component to use it elsewhere in your application, such as in a notification, another display field, or for comparison.
Input
- UI element (Required): This is the specific "Title" type UI element from which you want to extract the title text. You must select an existing title UI element from your application's design.
Output
- Result (Text): The title text retrieved from the selected UI element. This text will be stored in a variable. You can choose a name for this variable (e.g.,
MyPageTitle), or it will be stored in a default variable namedTEXTif you don't specify one.
Execution Flow
Real-Life Examples
Here are some practical ways you can use the "Get title on title UI element" action:
- Displaying a Page Title in a Confirmation Message:
- Scenario: After a user successfully submits a form on a page, you want to show a confirmation message that includes the title of the page they just completed.
- Inputs:
- UI element: Select the "Title" UI element that displays the page's main heading (e.g.,
OrderConfirmationPageTitle).
- UI element: Select the "Title" UI element that displays the page's main heading (e.g.,
- Result: The action retrieves the title "Order Confirmation" from
OrderConfirmationPageTitle. This title can then be used to construct a message like "Thank you for completing your Order Confirmation!"
- Dynamically Updating a Report Header:
- Scenario: You have a dashboard with various report sections, each with its own title. You want to capture the title of the currently active report section to use it as the main header for a printable version of the report.
- Inputs:
- UI element: Select the "Title" UI element that displays the current report's heading (e.g.,
CurrentReportTitle).
- UI element: Select the "Title" UI element that displays the current report's heading (e.g.,
- Result: The action gets the title "Quarterly Sales Performance" from
CurrentReportTitle. This title can then be automatically inserted into a text field designated for the printable report's main header.
- Validating Content Consistency:
- Scenario: You are building an internal tool where users can edit product details. You want to ensure that the product name displayed in the main title of the product page matches the product name entered in an editable input field.
- Inputs:
- UI element: Select the "Title" UI element showing the product's name (e.g.,
ProductDetailPageHeader).
- UI element: Select the "Title" UI element showing the product's name (e.g.,
- Result: The action retrieves the title "Premium Wireless Headphones" from
ProductDetailPageHeader. This retrieved title can then be compared with the text from the editable input field to check for discrepancies and prompt the user if they don't match.