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.

Removing value list items where partial match is found

Featured Replies

Hi there... I'm trying to create a custom function which can remove value list items if a partial match is found

 

 

eg:

 

Alu (0)
Aluminium (0)
Aluminium Effect (0)
Black (2)
Saphire Blue (0)
Silver (0)
Soft Ivory (0)
Stainless Ice (0)
Stainless Steel (0)
White (20)
Yellow (0)

 

I am trying to remove all the occurances or (0) thereby leaving

 

Black (2)

White (20)

 

Any ideas?

 

Instead of "partial match", could we formulate your quest as "remove all values ending with thisString"?

  • Author

Instead of "partial match", could we formulate your quest as "remove all values ending with thisString"?

Hiya... yes actually I have found a custom function to do what I wanted now...

 

Leaving

 

Black (2)

White (20)

 

Now how do I get to

 

Black

White

 

(Ie delete everything in the brackets at the end!)

 

How do I do that?

I guess you need to modify that function to output only the first n -1 words of the passed value, where n = WordCount (value ). That's assuming ALL passed values have this suffix.

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.