Go to Contents
Previous
Page
Next
Page
Contents > Creating and managing layouts and reports > Working with web viewers on layouts > Defining a custom web address

Defining a custom web address
FileMaker Pro includes web viewer templates that define web addresses for several websites. However, you can create a custom web address for any website you want to display in a web viewer.
The web address for a web viewer is a calculated expression, similar to a formula specified by a calculation field. To create a custom web address, you create a formula that can consist of constants, field names, functions, and operators. FileMaker Pro evaluates the expression to construct a URL, which the web viewer uses to display a web page.
To define a custom web address for a web viewer:
1. In Layout mode, add a web viewer, or select a web viewer that is already on the layout and choose Format menu > Web Viewer Setup.
For more information, see Adding a web viewer.
The Web Viewer Setup dialog box appears.
2. In the Choose a Website list, choose Custom Web Address.
If a website template was previously selected, its web address remains in the Web Address box, but the website parameter boxes disappear.
3. Click Specify next to the Web Address box.
The Specify Calculation dialog box appears.
4. Enter a formula for your web address.
For more information on formulas, see Working with formulas and functions.
5. Click OK to close the Specify Calculation dialog box.
6. Continue to edit the web address or choose other web viewer options, then click OK.
Notes
To see example web addresses, click any of the websites in the Choose a Website list. If one of these is similar to the custom web address you want to create, be sure to choose Custom Web Address before you edit the web address.
To see a calculated URL based on your custom web address, in Layout mode choose View menu > Show > Sample Data.
The result of a calculation for a custom web address must be text.
You must ensure that your custom web address:
begins with the correct scheme — for example, http://, https://, or ftp://. If you omit the scheme, the operating system's web browser might use one that you didn't intend.
is correctly encoded as a URL. See About URL encoding in web viewers.
Related topic
Troubleshooting layouts with web viewers

Contents > Creating and managing layouts and reports > Working with web viewers on layouts > Defining a custom web address
Previous
Page
Next
Page