February 24, 201015 yr Hey, all. Are you aware of any way to preserve Italic and Bold formatting of values in a FileMaker file when published to the web via the PHP API? Thanks, in advance, for your response. Michael
March 4, 201015 yr Newbies I'm new here, and unfortunately I don't have the answer -- but would like to broaden the question just a little. I'm looking for how to preserve bold and italic values when using IWP to put content online. If a word is italicized in a field of a FileMaker Pro database, it shows up properly italicized online via IWP. But as soon as the online user clicks on the field to edit it, the italics disappear -- and if the user commits the record from the web browser, the FileMaker database is updated with the loss of the text styling. I've looked through FileMaker's IWP Guide, and although it has several pages of tips for designing layouts for IWP, this is not mentioned at all. (This document is for FMP 10; does it matter that I'm using FMP 9 instead of 10 -- did this change from 9 to 10?) Thanks in advance for any help. -- Eric Edited March 4, 201015 yr by Guest
March 5, 201015 yr I've not tried it, but you could try creating a calc field using the GetAsCSS( [YOURFIELD] ) then using that field with the PHP API.
March 9, 201015 yr I can vouch for the GetAsCSS function for preserving text field formatting when published via the Filemaker PHP API. Use it extensively in Web content management stuff. Don't know what I would do without it, other than manually insert HTML tags.
March 26, 201015 yr you'll have to make a call to $record->getFieldUnencoded('yourCSSCalcFieldHere') instead as the default call to $record->getField('yourCSSCalcFieldHere') will not render correctly.
Create an account or sign in to comment