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.

Displaying Data - New Line

Featured Replies

  • Newbies

Hi!

I'm doing a simple search and display using PHP and Filemaker. One challenge I have is that carriage returns entered in the Filemaker field is not showing up in the browser. I can detect characters like tabs (t) but not the newline character.

I have tried nl2br, preg_replace( '/rn/', "
", $record->getField("description") ) with no success.

Any advise?

Thanks in advance!

-TC

Edited by Guest

Try:

 - Para Graph Sign i.e. the pilcrow char





 - Line Feed





- carriage return

Or a combination of the last two.

Edited by Guest

  • Author
  • Newbies

Hi Genx,

Thanks for the suggestion. Unfortunately, this doesn't seem to work. And I'm using it in this manner:


$text = $record->getField("description");

$pattern = array('

', "t");

$replace = array('
', '

Hmmm,

I'll try a few things out on Wednesday and get back to you on this if you haven't found a solution yet.

.. In the mean time, try making a calc in FileMaker on your field: Substitute( field ; ¶ ; "
" ) and then retrieving that instead.

If that doesn't work, try using the specified codes for new line and carriage return.

Cheers.

Edited by Guest

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.