Jump to content
Jason Mundok

Display FileMaker Text Field Formatting through PHP API

Recommended Posts

I have a website that is displaying FileMaker data using the PHP API. Is there a way for the web site to display the basic text formatting from a FileMaker field? For example, a few words in the comments field are bold in FileMaker and I would like them to also be bold on the website. Thanks for any ideas.

Share this post


Link to post
Share on other sites

This is true for FileMaker 11, unless FileMaker made some serious upgrades to their php api after this; here is my piece of advice. As a rule of thumb what you export when you export to XML for FileMaker is what you can bring to the web. That said I'd imagine you can make a supporting field that holds the info you are after.

Edited by ggt667

Share this post


Link to post
Share on other sites

don't know that you can... but perhaps if you have a shadow field that uses GetAsCSS() on your original field, that could give you something to work with?

Share this post


Link to post
Share on other sites

Thanks, Wim. That was suggested elsewhere as well. I'm going to try it a little later and I'll post back with the results.

Share this post


Link to post
Share on other sites

It looks like you should be able to do GetAsCSS( fieldname ) and then use the output of that in its own field. No need for supporting/shadow field: http://www.filemaker.com/help/12/fmp/html/func_ref3.33.54.html Yet you will have to override CSS font or be stuck with whichever font is put inside FileMaker by the looks of it.

Edited by ggt667

Share this post


Link to post
Share on other sites

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


×

Important Information

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