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.

formatting large chunks of text need help

Featured Replies

i am having a lot of trouble formatting text in cdml

i am creating an online newsletter for our clients

but with large chunks of text i cannot get it to format correctly. If i set the replacement field in html to preformatted text (as in the format it is in, in filemaker) it keeps all the returns and bullet point and so on, but it does not keep to the width of the page. if there is no carrage return at the end of line it just keeps going and going. is their any way to set a pargraph width.

i have tried setting the field to paragraph 1 in html. i then lose the formatting of bullet points and carrage returns in the text and i get one chunk of continuous text (but at the right width).

is there any way i can get the joys of having carrage returns in my text with out having my text scroll across three pages

please help

Are you using tables to hold your text? Maybe you can set the width of a table cell to force your text width?

Good Luck.

Garry

Or you can use the HTML in text for formatting. We have Word Macro for this. Generally it is changing Word file to text with HTML formatting.

We are publishing this way from FM Technical Weekly magazine and all PR stuff from ICT.

The text field should use the RAW formatting.

  • Author

how does the word macro work, and is there any equivelant in filemaker.

i could have raw text going in one field and a calculated field to format the text into html

this is the best solution i can come up with but i have not a clue how it would work

any ideas

Are you able to set the width by using a table cell; i.e. <td width="60">[FMP-Field: mytext]</td>?

Garry

As Garry suggested - you limit the width with TD -- cell.

Macro is changing the Bold for <b> HTML tags and so on.

Conversion of one article is around 1-2 seconds in macro and 1-2 minutes of manual tune-up and testing through browser

  • Author

i have tried to limit my table width which does not work when i have the cdml put in preformatted text, how ever it does when i just use non formatted text but i then lose my carrage returns in the text

i have tried substituting the carrage returns in the text in filemaker for "<br>" with a calculation field but then i just get &#60;br&#62; showing in the text on the html

help

Sorry, I'm coming into this late... have you tried [FMP-Field, Break] ?

  • Author

thank you, that is genius

and so simple.

that makes it even more genius

Thank you for the kind words; there are definitely some true geniuses (genii?) on FMForums from whom I have learned much. I'm glad to have helped.

RE: i have tried substituting the carrage returns in the text in filemaker for "<br>" with a calculation field but then i just get &#60;br&#62; showing in the text on the html

<br> will display if you use the RAW. RAW has the advantage to display ANY HTML formatting like tables and various CSS etc.

JavaScript will not work with BREAK and CR in field, so we are not using that.

Sorry for the late chime in...

One place the "Break" does not work properly is in a text area within a form. The wrap= seems to work in those instances.

<textarea name="Specs" size="6" style="width: 550px; height: 50px; font-size: 11px" wrap="virtual">

LR

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.