Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5576 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

Posted (edited)

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
Posted (edited)

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
Posted

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.

Posted

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.

Posted

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 & ""

This topic is 5576 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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