cinolas Posted May 31, 2004 Posted May 31, 2004 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 : <br> 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
Garry Claridge Posted June 1, 2004 Posted June 1, 2004 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 mpauley Posted June 5, 2004 Newbies Posted June 5, 2004 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
Steve T. Posted June 7, 2004 Posted June 7, 2004 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
Recommended Posts
This topic is 7463 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 accountSign in
Already have an account? Sign in here.
Sign In Now