Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

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 ]

Posted

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

Posted

You should be able to put the whole link in a text field (with raw encoding) as well. Dunno why it didn't work.

This topic is 8489 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.