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.

HTML code in FMP field

Featured Replies

I cannot believe this has not been answered before... searched the forum couldn't find anything.

I want to display a large, formatted text field on the web. The field's content goes as such:

-Cinolas Smith at 13:00 on 05/31/04

-Julie Thompson at 14:30 on 05/29/04

-Brad Whatever at 11:00 on 05/19/04

and so on. But the field is displayed without the carriage returns so like :

-Cinolas Smith at 13:00 on 05/31/04-Julie Thompson at 14:30 on 05/29/04-Brad Whatever at 11:00 on 05/19/04

My first attempt was to create a WEB version of this field so as to include some formatting such as :

-Cinolas Smith at 13:00 on 05/31/04<BR>

-Julie Thompson at 14:30 on 05/29/04<BR>

-Brad Whatever at 11:00 on 05/19/04<BR>

But the <> were converted so has not to be interpreted by the HTML as code and my <BR> showed up as :

&#60;br&#62;

So my question is:

How does one format large text field so as to include carriage returns ?

OR

How does one gets the HTML code in a text field to be interpreted as code and not text.

Thanks to all

You can use "[FMP-Field:myfield, break]", this translates carriage returns into <BR>.

Also, you can use "[FMP-Field:myfield, raw]", this will preserve your embedded html.

Good Luck.

Garry

  • Newbies

Hi,

I have the same problem: I want to display HTML in a text field on the web. . .

Where do you use the "[FMP-Field:myfield, raw]"? Does this go in the definition of the field somewhere?

Mark

Hi, Mark! Unless I am mistaken, I believe Garry's reference is to the CDML custom web page where you want to show the data on, e.g. mydetailpage.html. The field contents can be plain text and can contain HTML tags in them... thisfieldname = "<B>THIS IS IN BOLD</B>". So, on the web format page mydetailpage.html, you would have

[FMP-field:thisfieldname, raw]

I've used BREAK before, but not RAW encoding, so it's nice to know there's a use for it. You don't have to mess w/ Define Fields... at all.

--ST

  • Author

Thanks Garry !

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.