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.

field format to display html in a FMPro field correctly

Featured Replies

What is the best way in CDML to display field content. I have two issues. When a client adds returns in a FMPro field they don't display correctly when viewed on the web. The returns don't display at all on the Mac and will only act as returns on the PC if he adds a space after each return.

Also, is there a way to display urls as links. It doesn't seem to work to add the <a href> and </a> tags. Instead of a link, you just see the tags "printed" in the field.

I know that there are options for the fields when creating CDML, ie. raw, html, etc, but I've never figured them out.

The CDL tag for field has an encoding option that will do all this.

[FMP-Field: fieldname, encoding]

html (default) performs html encoding on the field data, so text appears as plain text.

break performs html encoding but puts a <br> where a carriage return is in the data

raw perfroms no encoding, so any html codes are interpreted by the browser as HTML.

To get your links to work, use raw encoding. To get plain text to display line breaks, use break.

  • Author

Now that makes sense! Thanks for the info.

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.