Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Italic and Bold values in FileMaker preserved on site

Featured Replies

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

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

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.

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...

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.