Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5355 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

  • 2 weeks later...
  • Newbies
Posted (edited)

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 by Guest
Posted

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.

Posted

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.

  • 3 weeks later...
Posted

you'll have to make a call to

$record->getFieldUnencoded('yourCSSCalcFieldHere') instead as the default call to $record->getField('yourCSSCalcFieldHere') will not render correctly.

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