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

Converting Text HTML

Featured Replies

Greetings;

I have a field called "Product_description" and "Product_description_html".

what i want to happen is when you type the following into the field "Product_description";

"FEATURES:

Pg 20- EVAN FARMER- While You Were Out's handsome handyman host kisses and tells about his music, his 'underrobe' and his search for Mrs. Farmer.

"

to this in "Product_description_html";

"FEATURES:

Pg 20- EVAN FARMER- While You Were Out's handsome handyman host kisses and tells about his music, his 'underrobe' and his search for Mrs. Farmer."

Why not just use GetasCSS ( ) and not enter the html code, but use FM's formatting?

  • Author

well because eventually all the descriptions will be changed to have the html code. I want the second box to show what it will look like on the website..

Edited by Guest

Just format in FM. For the website, have a calc field that uses GetasCss()

You should be able to use the "data" feature of the web viewer to properly render the HTML you have in a data field.

Make the "second box" a web viewer on your layout.

Instead of using an external URL, set the web viewer to have something like

"data:text/html," & Product_description & ""

as the calculation of its URL.

Note that the web portal's "data:" feature has become more reliably cross-platform with FM 10.

Edited by Guest

GetAs(CSS) mainly is" aprox to html". OK in a lot of cases but anyway - for lager texts containing several fields, calculations, image URL's - correct calculation must be written - with all "&", " and so on, and then GetAS (CSS) can be used to finalize html code.

  • Author

i would like to make sure that is is going to come out all right, i want to make sure that it is fine so i dont have to check all 1000+ records on the site, it will show a preview on the second box.

  • Author

Thanks

This is excactly what i was after, the coding is listed below. Thanks for the help.

"data:text/html," & Product Catalog::v_products_description_1 & ""

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.