dbTalk Databases Forums  

html in text field??

comp.databases.filemaker comp.databases.filemaker


Discuss html in text field?? in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dluxmac
 
Posts: n/a

Default html in text field?? - 01-03-2007 , 12:03 PM






I have a text field which is a calculation that contains a mailto
syntax eg.

<a href="mailto:astark1 (AT) unl (DOT) edu?subject=FMP field>
(FMP field is a separate field from the calculated text field)

I wish to use this field in the send mail feature as the message. My
client will get the e-mail and click the link which will open their
e-mail client and insert the desired address and subject. I have been
unable to get the field to render the desired results. Any ideas?
Sorry if I went into too much detail. Thanks.


Reply With Quote
  #2  
Old   
Ursus
 
Posts: n/a

Default Re: html in text field?? - 01-03-2007 , 12:33 PM






Use a calculation like the following. Presume FMP 8.5

"<a href=\"mailto:asark1 (AT) unl (DOT) edu?subject=" & FMPfield & ">"

Ursus

"dluxmac" <dlux01 (AT) gmail (DOT) com> schreef in bericht
news:1167847409.733220.58100 (AT) h40g2000cwb (DOT) googlegroups.com...
Quote:
I have a text field which is a calculation that contains a mailto
syntax eg.

a href="mailto:astark1 (AT) unl (DOT) edu?subject=FMP field
(FMP field is a separate field from the calculated text field)

I wish to use this field in the send mail feature as the message. My
client will get the e-mail and click the link which will open their
e-mail client and insert the desired address and subject. I have been
unable to get the field to render the desired results. Any ideas?
Sorry if I went into too much detail. Thanks.




Reply With Quote
  #3  
Old   
Howard Schlossberg
 
Posts: n/a

Default Re: html in text field?? - 01-03-2007 , 12:49 PM



You should either use the Open URL script step with a calc of:
mailto:astark1 (AT) xxx (DOT) edu?subject=FMP

Or use the Send Mail step with just the email address alone (i.e.
astark1 (AT) xxx (DOT) edu)


dluxmac wrote:
Quote:
I have a text field which is a calculation that contains a mailto
syntax eg.

a href="mailto:astark1 (AT) xxx (DOT) edu?subject=FMP field
(FMP field is a separate field from the calculated text field)

I wish to use this field in the send mail feature as the message. My
client will get the e-mail and click the link which will open their
e-mail client and insert the desired address and subject. I have been
unable to get the field to render the desired results. Any ideas?
Sorry if I went into too much detail. Thanks.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg (818) 883-2846
FM Professional Solutions, Inc. Los Angeles

FileMaker 8 Certified Developer
Associate Member, FileMaker Solutions Alliance


Reply With Quote
  #4  
Old   
Helpful Harry
 
Posts: n/a

Default Re: html in text field?? - 01-03-2007 , 11:19 PM



dluxmac wrote:
Quote:
I have a text field which is a calculation that contains a mailto
syntax eg.

a href="mailto:astark1 (AT) xxx (DOT) edu?subject=FMP field
(FMP field is a separate field from the calculated text field)

I wish to use this field in the send mail feature as the message. My
client will get the e-mail and click the link which will open their
e-mail client and insert the desired address and subject. I have been
unable to get the field to render the desired results. Any ideas?
Sorry if I went into too much detail. Thanks.
There's two hiccups here.

Firstly, your email application must be able to accept HTML formatted
emails from FileMaker Pro's Send Mail command. Unfortunately this is
unlikely, especially since the command tends to be flakey to begin with
(although that's the fault of the email applications, not FileMaker).

Second, your Calculation field will have to create the *entire* HTML
code for the email, not just the <a href...> above. That includes all
the necessary HTML tags like <body> , <header>, etc.

You may find that you need to use an email plug-in like SMTP-it to be
able to achieve what you're trying to do.


Now assuming all that works, the Calculation above becomes fairly
simple. The problem is the " symbols. One wayis to store a " symbol in
a Global field (eg. g_Quote) and then just concatenate that into the
calculation where needed. That means the part of the Calculation field
needed to achieve the above mail link would become something like:

"<a href=" & g_Quote & "mailto:astark1 (AT) xxx (DOT) edu?subject="
& FMP Field & g_Quote & ">Click here to email</a>"






Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.