Brian Dunning's FileMaker Custom Functions

BoldItalicEncode ( Text )

Encode any bold or italic text with tags

  Average rating: 4.4 (36 votes) Log in to vote

Tom Robinson   Tom Robinson - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
BoldItalicEncode ( "hello. this is bold, this italic, and this both" )
  Sample output:
hello. this is [bold], this {italic}, and this [{both}]

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Wrap any bold text in the input text with square brackets, and italic text with curly.

This particular custom function was written for converting formatted text to something a web database could use. You could modify it to generate HTML tags from formatted text too.

It's also a particularly fiendish example of using the evaluate function.



Paolo   Paolo
Mar 2, 2015

that is exactly what I was looking for.

Tried to convert to italian (my fm pro version). But I always get an error executing it ("missing field or "(" )


["<SPAN STYLE= ";"Dichiara([w=\""];

b=ContaRicorrenze(s;\"font-weight: bold\");


Any suggestion ?
Many thanks,
The Author   The Author, New Zealand
Mar 2, 2015
From a quick glance you've got extraneous spaces, e.g. 't=D estra', '[& quot'.
Orlando   Orlando, Berkeley, CA
Jul 1, 2015
Hello Tom,
Thank you so much again for this great custom function! It has served us nicely throughout these years while using FileMaker 11!

For some reason I'm not able to running it under FMP 13. I get a question mark and this error message:
'A number, text constant, field name or "(" is expected here.

Any idea what could be going on?

Thanks a lot!

Chris   Chris, Worcestershire UK
Aug 5, 2015
This stopped working for me in FileMaker Pro 14, and I just work out why:

The top note (1.a) explains that the newer version no longer gives the tags as capitals, but as lower case. So, we need to change the tags to lower case as well. Specifically:
["<SPAN STYLE=";"Let([w=\""];
["<span style=";"Let([w=\""];
Making these changes got it working for me again.

Thanks so much to the author of this function, and to this great site for hosting it.

Log in to post comments.


Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 16 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: