How can i create a dynamic link on my form?


Badge +2

Using Version: 1.2.1.0 (I know.. I know..)

Every time I try to add a link in a label field with a dynamically generated querystring parameter the formatting seems to be messed up.

For example:

1) add a label to the form

2) modify the label

3) Click "Link"

4) Add http://google.ca?q=test to the address field

5) add "link" to the "Hyperlink text to display" field

The link is displayed as HTML in the label (<a href...etc)


3 replies

Badge +2

I also tried a rich text box control, with the following url in the Address field:

http://google.ca?q=fn-Replace("text","ex","xe")

it presented me with an error:
3-3-2016 10-43-41 AM.png

Badge +6

Hi Kolten

I just tested this, as you described it for a label, in our 2.4.1 version and it works without issue. Sounds like you might need to talk to your manager! wink.png

Cheers,

Mark

Userlevel 4
Badge +8

Kolten -

Assuming this is a workflow form (rather than a list form), I suggest the following:

  1. Create a workflow variable with a name link "MyCustomURL".
  2. Assign the desired URL value to variable.
  3. From the Label Control Settings, click on the Format Text tab, then click the Edit Source button
  4. In the HTML Source, enter the HTML for your link with the variable URL, such as:

<a href="{WorkflowVariable:MyCustomURL}" target="_blank">My Link Display Text</a>

Reply