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

Replacing characters in a field

Featured Replies

I have a script that exports an image file from a container. The filename is created fron a couple fields, the last of which contains short notes and in some cases there may be return characters. The filename falls apart at the returns as you may have guessed. I was hoping someone could tell me how to replace returns in a field with another character?

Thanks

Substitute ( LastField ; ¶ ; "another character" )

  • Author

Is there a script step that will accomplish the same?

More than one, but your probably best starting with Set Field, place the above substitute function in the calculated result.

  • Author

My preference would be to set a variable with the contents of the field, then parse out the "¶" in the variable before tacking it onto the file name.

My preference would be to set a variable with the contents of the field, then parse out the "¶" in the variable before tacking it onto the file name.

???Why the redundancy of messing with a variable, and what do you mean by tacking?

Never mind, misread, thought you were setting field, not an export parameter.

Edited by Guest

  • Author

The field in question is a notes field. I would like to keep the format of the notes field as is including the "¶"s.

My preference would be to set a variable with the contents of the field, then parse out the "¶" in the variable before tacking it onto the file name.

Set Variable [ $var ; Value: Substitute ( LastField ; ¶ ; "another character" ) ]

  • Author

Just what I needed. Thank you. It is working perfectly.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.