Jump to content

Making a working link from a text field


This topic is 8286 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hello

I have a database that is published online with cdml. I would like to have the ability for the user to click a link (created by the text in a field) that downloads a local file.

For example...

To download a pdf document in html I would make a url-

http://addresstoserver/file.pdf

How can I insert this information into a FM field, such that when cdml renders the page I have an active link?

I tried entering this

<a href="http://addresstoserver/file.pdf">download pdf</a>

as my text in a field and tried the different text display modes

[FMP-Field:Fieldname,raw]

[FMP-Field:Fieldname,url]

[FMP-Field:Fieldname,html]

[FMP-Field:Fieldname,blank]

Raw came the closest, but IE gives an error when attempting to download.

Any suggestions?

Thanks

[ November 03, 2001: Message edited by: knussear ]

Link to comment
Share on other sites

I figured it out.

In case anyone else needs to do something like this the html/cdml looks like this

<a href="http://serveraddress/[FMP-Field:Filename]">[FMP-Field:Filename</a>

I was trying to contain the whole link in the text field. How silly I was

smile.gif" border="0

Link to comment
Share on other sites

This topic is 8286 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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