Building a Link URL Based on Text Field

Scenario

This recipe uses the Scaffolding Text Data macro and Reporting macros to direct a user to a web page depending on what the user accesses. It includes the ability to enter a search keyword via Wikipedia and be directed to a specific page.



Result


Recipe

Ingredients

Add-ons

Reporting, Scaffolding

Platform

N/A

Level

EASY

Estimated time

10 minutes

Macros

Suppliers

Storage format

Macro structure

You can recreate the example in the editor view:

Steps

  1. Create a Text Data macro for the user to enter the URL. Set the following parameters as stated:
    Name: "URLprefix"
    Type: "line"
    content: "text"

  2. Create another Text Data macro for the user to enter the key word, and set the parameteres as below:
    Name: "URLprefix"
    Type: "line"
    content: "text"

  3. Create a Report On macro, and check the injected parameter to set it to True.

  4. Within the Report On macro, create a Report Link macro. Set the parameters as below:
    Key: data:URLprefix
    URL Postfix: %data:Website Page%

  5. Save the changes. Now, you can click on Edit Contents to enter the URL and keyword.