you don't even need a script.
create a text string, define its action as if it was a button = open URL + URL itself
Main Topics
Browse All TopicsI am making a subscription database and I have a field that contains the URL's for each subscription site. How do I make that field display the inserted data ( http://www.unitedstreaming
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
As lesouef points out this doesn't have to be a script it can be done by just defining the fields as a button and calling the open URL string.
However, depending on how your system is setup it might be nicer to set it up with a script and on your layout use some conditional formatting to boot.
For example:
You might put conditional formatting on the field (right click and choose Conditional Formatting, or select and use the Format menu to get to Conditional Formatting) where the formula says something like:
Left (fieldName , 5 ) = "http:"
And when that formula is true then change the text color to blue and underline it. This will present a nice look if your data contains items other than URLs.
Then hook the field to a script where you use the same logic:
If Left (fieldName , 5 ) = "http:"
Open URL [fieldName]
End If
In this way if the field contains a URL then the text will be blue and underlined and when clicked it will open the URL in the user's default browser. When the field does not contain a URL then it will appear in the normal text and nothing will happen when it is clicked.
Email me if you have any questions.
--
Chad Adams
chad.adams@skeletonkey.com
Business Accounts
Answer for Membership
by: kraftymanPosted on 2009-09-30 at 01:39:55ID: 25456569
Create an Open Url script, and use the text field as the argument.
You can then link the script to a button next to your field, when clicked, filemaker will use your default browser to open the link. If you are using a version of filemaker with a web viewer control, you can do this directly on your layout!