You are here: Reference Guides > Designer Form Controls (A-Z) > Ws.URL

Ws.URL

With the Ws.Url Control you can place a URL in the body of a form in a position that you specify. In addition, you can specify a textual description for the link and create a new window when the link is clicked.

The Ws.URL Control also provides the ability to render a browser inside your form. However, some sites may not work inside the Form and will need to be launched using the New Window option.

Download example (.wssln file)

Ws.URL properties

Property

Description

Include Inline

Displays the results of the URL inline in the form.

New Window

Whether or not to create a new window in which to display the URL when the user clicks the link.

Result Field XPath

The field that should be replaced in the form with the URL and its text.

Text Field XPath

The field from which to get the text to display in the page for the link.

Url Field XPath

The field from which to get the URL.

Configuring the Ws.URL Control

Back to top

  1. Add the Ws.URL Control to your form and go into its properties.

  2. In the URL Field XPath, enter the name of the InfoPath field that will hold the value of the URL.
  3. In the Text Field XPath, enter the name of the InfoPath field that will hold the value of the text to be used in place of the URL.
  4. In the Result Field XPath, enter the InfoPath field name of which you want the result to appear in.
  5. If you are using the Include Inline option, it will render the web page within the form. (If you choose to use this option, widen/lengthen the text box to a more appropriate size.)