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 5217 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I'm attempting a technique for an email template solution whereby I'll take text with placement holders and output text for use in an email body.

However, I am losing my text formatting. Attached is a simple demo of the problem. Note that any formatting in the Input text field is lost.

Suggestions?

DemoEval.zip

Posted

Scripted Filemaker email is plain text and does not support any text formatting.

Posted

I suppose I should have mentioned that I will send this text using 360works email as html.

So, forget that part, I want to know how to maintain formatting with Evaluate ( ).

Posted

Thank you Daniele, for your input.

The problem is that I want to give the user the ability to format the text in FM. I will use GetAsCSS ( ) after the Evaluate and send that result with the plugin.

However, the Evaluate is killing my formatting.

Posted

I suppose I should have mentioned that I will send this text using 360works email as html.

So, forget that part, I want to know how to maintain formatting with Evaluate ( ).

You don't. You use substitute.

There are some more elaborate examples available that include evaluation of items within the merge brackets.

DemoEval.fp7.zip

Posted

Thank you, Bruce, but I have one more level of abstraction in my techique. The placeholders are not simply field names, but rather pointers to a field that is itself evaluated.

So, back to my demo. I need to evaluate Input Text (as I have it entered in my demo) and have ResultText maintain the text formatting.

I'm playing now with applying GetasCSS ( ) and then substituting.

Posted (edited)

Wrong way around.

Updated version using MergePlus custom function.

http://www.briandunning.com/cf/831

DemoEval.fp7.zip

Edited by Guest
Posted

I had just discovered that CF before your post...Thank you for such a complete demo.

Posted

I had just discovered that CF before your post...Thank you for such a complete demo.

You're welcome. The substitute method is pretty amazing. Formatting of individual areas can be maintained. Note in particular the tab stops and ruler settings for the portal-list result.

Posted

I had just discovered that CF before your post...Thank you for such a complete demo.

Yet another variation with formats and tab stops stored in repeats and further substitutions.

DemoEval.fp7.zip

Posted

Hi Bruce

this is an exellent practical example of the Peter Vinogradov's MailMergePlus CF.

But tab stops stored in repeats is a [color:red]great your idea !

Thank you very much.

P.S.??? if you insert a tab char into a reteatition of zSTyles ( or may be better into a new global field ) and consequently substitute the Char ( 9 ) with that repeatition, this example will work even on 9 .

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