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.

Find/Replace

Featured Replies

This is my script::

Go to Record/Request/page [first]

Loop

Go to Field[select/Perform; Time::Description]

Perform Find/Replace[ """; "'' ;Replace all]

Goto Record/request/page [next; exit after last]

end Loop

What it is supposed to do is go to the description field and find all quotation marks and make them a single apostrophe. Because when exporting we can't have quotation marks in the comma-seperated file.

So instead of seeing Last night I read the book, "The Perfect Storm".

it would read, Last night I read the book, 'The Perfect Storm'.

BUT it doesn't work!!!

Can a field be changed like this or should we just have a second field that uses the Substitute[] and export that field instead???

Thanks in advance.

Should the script step read:

Perform Find/Replace[ """; "''' ;Replace all]

If [ IsEmpty ( Get ( ScriptParameter ) ) ]

  Go to Record/Request [ first ]

  Perform Script [ "this_script" ; Parameter: Substitute ( Time::Description ; """ ; "'" ) ]

Else

  Loop

    Set Field [ Time::Description ; Get ( ScriptParameter ) ]

    Commit Record/Request

    Go to Record/Request [ next ; Exit After Last ]

  End Loop

End If

*edit: i forgot the commit record/request : likely what your script is missing too.

  • Author

Ralph: That didn't seem to work either. In a calulation it does but not within a find/replace.

Rob: That worked althought I left out the If[]

Thanks for the help!

Rob: That worked althought I left out the If[]

I'm getting so used to ScriptParameters that right now I don't touch anything without them. smile.gif

Its very useful in cases where you want to do the same thing, but drop to Find mode before setting fields. laugh.gif

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.