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.

carriage return in set field?

Featured Replies

I want to put a carriage return into a text field using set field, like this:

$currentRecord->setField('tActivity_Log', $text . "Carriage Return");

What do I use in place of the "Carriage Return"?

Thanks!

$text . "¶" or $test . "n"

Edited by Guest

  • Author

Thanks. Neither of those puts a carriage return into the Filemaker field, though.

I would try putting in a vertical tab.

That is ASCII 11 in decimal.

FileMaker uses a vertical tab in the data it exports to text files to represent a carriage return in the text field. Perhaps this is the internal representation too.

Sorry Harden... I assumed that would work because I do something similar in ruby. Have you tried just copying and pasting a carriage return into your code. It's a little ridiculous but it may work.

I think I remember having a variable defined for just this problem at one point when I was doing some php work.

$currentRecord->setField('tActivity_Log', $text . "nr");

  • Author

Tried copy and paste on ALT-20. Tried "nr"

No dice. I'll just use another separator instead. Thanks!

interesting because the code I posted worked for me with the following setup.

PHP running on a LAMP server and FMSA10 running on W2K3 IIS

What configuration are you using??

edited to add -

Whenever text doesn't appear to function correctly I start thinking it may be an encoding issue. Try adding the following to the header of the page that generates the data






you could also try 




$currentRecord->setField('tActivity_Log', $text . chr(13));

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.