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.

Allowing a Space Character in a Filter

Featured Replies

I'm trying to use the Filter in a custom function to only allow alpha numeric characters along with the space character. It works fine for all of the alpha numeric characters but it is still filtering out the spaces (which I want to keep).

This is what I am using:

Filter ( fp_input ; "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwzyz0123456789., -" )

Is there something that I am missing?

Edited by Guest

I see no space in that string. Hmmm, I see:

w zyz0

Is that where the space is? Because space DOES work within Filter().

Edited by Guest

  • Author

Hmm, the spot where you thought was a space was actually the letter X and x and the space was found after the -.

I did a direct copy right from the custom functions window. I tried it again after modifying the data in the original field and sure enough the space worked.

What I am doing is taking an existing system that I don't want to disturb and creating new fields that were calculation fields that called the custom function.

I think my problem is solved, thank you.

  • Author

When I originally set up the custom function, I had missed including the space character in the filter. When I added it, it didn't seem to make a difference. However when I deleted the calculation field that was calling the custom function and recreated it, it worked fine.

Strange but I am now working.

Edited by Guest

When I added it, it didn't seem to make a difference.

I would suspect you had it set as an indexed calculation and, since the CF changed but no FIELDS within the calculation changed, your calculation didn't know the CF was changed and thus couldn't update.

Well ... at least that's my story and I'm stickin' to it. :grad:

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.