AlesD Posted April 15, 2013 Posted April 15, 2013 Hi, I'm using web viewer to display some formatted text from field and I'm unable to find out how to get same formatting in iwp. In filemaker everything looks correct but in iwp there isn't any word wrapping. I was thinking I'll replace CR with <br> tag but I need functionality in filemaker and in iwp. I've tried safari, chrome, firefox, IE all behave same. Any idea? Thank you AD
webko Posted April 15, 2013 Posted April 15, 2013 You could try having another field displayed that uses the GetAsCSS calculation: http://www.filemaker.com/12help/html/func_ref3.33.54.html
AlesD Posted April 16, 2013 Author Posted April 16, 2013 Yes that's the trick! Only thing you need to take care is replace double quotes with single ones. Web viewer doesn't like them. Thank you
Manjit Behera Posted April 16, 2013 Posted April 16, 2013 Yes, by using GetAsCSS calculation you can get rid of special characters to display on web-viewer. Example- TextField_xt = "This is a css text. This is not a plain text." TextFieldToCss_cn = GetAsCSS (TextField_xt) will give you the CSS code/text like - <SPAN STYLE= "" >This is a css text. This is not a plain text.</SPAN> The resultant CSS text field can then use in web-browser which reformat the CSS text and show you original text. This is a css text. This is not a plain text.
Recommended Posts
This topic is 4308 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