Ask AI
Skip to main content

Set value of template parameter

Function: Set value of template parameter

This action allows you to update a specific setting or placeholder within the template that is currently active in your application. Think of it like filling in a blank on a form that your app is currently displaying. You tell the system which blank to fill and what information to put into it.

Input,

  • Parameter (Text): This is the specific name of the setting or placeholder within your current template that you want to change. For example, if your template has a setting for "Welcome Message", you would enter "Welcome Message" here.
  • Value (Any Type): This is the new information you want to put into the chosen parameter. It could be a piece of text, a number, a date, a true/false statement, or even data pulled from another part of your application.

Output,

This action does not directly produce any output values. Its effect is to modify the current template's parameters.

Execution Flow,

Real-Life Examples,

Here are a few ways you might use this action in your application:

  • Example 1: Updating a Welcome Message

    • Scenario: You have a "Welcome Screen" template for your app, and you want to dynamically change the greeting message based on the time of day or user's name.
    • Inputs:
      • Parameter: "GreetingText"
      • Value: "Good morning, [User's Name]!" (where [User's Name] is data from your application)
    • Result: The "GreetingText" parameter within your current "Welcome Screen" template is updated to display the personalized greeting, like "Good morning, Alice!".
  • Example 2: Setting a Product Price

    • Scenario: You are using a "Product Detail" template, and you need to set the price for a specific product that is being viewed.
    • Inputs:
      • Parameter: "ProductPrice"
      • Value: 49.99
    • Result: The "ProductPrice" parameter in your "Product Detail" template is set to 49.99, which will then be displayed to the user.
  • Example 3: Controlling Feature Visibility

    • Scenario: Your "User Profile" template has a parameter to show or hide a "Premium Features" section. You want to hide it for a standard user and show it for a premium user.
    • Inputs:
      • Parameter: "ShowPremiumFeatures"
      • Value: False (if the user is standard)
    • Result: The "ShowPremiumFeatures" parameter in your "User Profile" template is set to False, making the premium features section invisible to the standard user.