Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

html link within a text field

Featured Replies

I have a text field which contains the availability of particular films on the internet. Some of these are also just brick and mortar locations.

I'd like to be able to format the URL's to internet locations as "links" to be able to have users click on them and go to that page. Is there a way to do this?

Thanks :)

All My Best,

Jeffrey

  • Author

I just tried doing a script which has Open URL and the field "Available at:" as specifying the url.

Here's an example:

This is what's in the field:

http://www.amazon.com/Looney-Tunes-Golden-Collection-Three/dp/B000ADS62G/sr=8-3/qid=1161400603/ref=pd_bbs_sr_3/104-2221467-9251903?ie=UTF8

When I just copy and paste this into Safari, it works fine. But when I activate the button, it brings up:

"We're sorry. The Web address you entered is not a functioning page on our site." From Amazon.

I then copied the URL from the 404 page at Amazon. This is the url:

http://www.amazon.com//Looney-Tunes-Golden-Collection-Three/dp/B000ADS62G/sr=8-3/qid=1161400603/ref=pd_bbs_sr_3/104-2221467-9251903?ie=UTF8

It looks exactly the same. Done by copy/paste, it brings up the page. Through FMP, 404.

What's going on?

All My Best,

Jeffrey

Looking at the two URL's I now see what's happening. Apparently, FMP is adding a second "/" after "www.amazon.com". That is *not* the way it looks within the field.

Any idea what's causing this?

Edited by Guest

This is a known bug in version 7. You need to pre-process the URL like this:

Substitute ( URL ;

[ "http://" ; "" ] ;

[ "/" ; "%2F" ]

)

You can leave the URL as is, and do the calc in the Open URL[] script step itself.

  • Author

That did it :)

I haven't seen Substitute done like this before. Can you step me through what this is doing? In fact, I've never even seen the structure you're using... i.e. it looks like you're doing 2 substitutes with one substitute command... is that right?

All My Best,

Jeffrey

Have a look at the function's reference in the Help file.

  • Author

Very nice... I really learned something this evening :)

Thanks :

All My Best,

Jeffrey

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.