Ask AI
Skip to main content

Get title on title ui element

Function: Get title on title UI element

This action allows you to retrieve the current text displayed as the title of a specific "Title" UI element on your application's page. This is useful when you need to dynamically use or display the title text elsewhere in your application, such as in notifications, reports, or for conditional logic.

Input

  • UI element: (Required) Select the specific "Title" UI element from your application's page whose title you want to retrieve. This tells the action exactly which title to look for.

Output

  • Result: The text (string) that represents the title of the selected UI element. This output will be stored in a variable you specify, which can then be used in other actions or displayed in your application.

Execution Flow

Real-Life Examples

Example 1: Displaying a Page Title in a Confirmation Message

  • Scenario: After a user successfully submits an order form, you want to show a confirmation message that includes the exact title of the order page they just completed.
  • Inputs:
    • UI element: Order Confirmation Page Title (assuming this is a "Title" UI element on your page)
  • Result: The action retrieves the text "Your Order Has Been Placed" from the Order Confirmation Page Title UI element. This text is then stored in a variable, which can be used in a "Show Notification" action to display a message like: "Thank you for your order! You have successfully completed the 'Your Order Has Been Placed' process."

Example 2: Using a Section Title for Conditional Navigation

  • Scenario: You have a dashboard with multiple sections, each having a dynamic title (e.g., "Sales Overview," "Marketing Performance"). You want to navigate to a specific detailed report page only if the current section title is "Sales Overview."
  • Inputs:
    • UI element: Dashboard Section Title (referring to the "Title" UI element for the current section)
  • Result: The action retrieves the text "Sales Overview" from the Dashboard Section Title UI element. This text is stored in a variable. An "If/Else" condition can then check: If [variable] equals "Sales Overview", then navigate to 'Sales Report Page'.

Example 3: Logging Dynamic Report Titles for Auditing

  • Scenario: Your application generates various reports, and each report has a unique title that includes parameters like dates or user names (e.g., "User Activity Report - John Doe - 2023-10-26"). You need to log the exact title of each report whenever it's viewed for auditing purposes.
  • Inputs:
    • UI element: Current Report Title (the "Title" UI element displaying the report's name)
  • Result: The action retrieves the text "User Activity Report - John Doe - 2023-10-26" from the Current Report Title UI element. This text is stored in a variable, which can then be passed to a "Log Event" action to record: "Report viewed: 'User Activity Report - John Doe - 2023-10-26'".