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.

Matching Keywords to a Field

Featured Replies

Hello all, I wonder if someone can help me with this. I have field1 that has text like "The shiny red car went fast"

I have three other fields that each have a word like:

'shiny'

'car'

'fast'

Since those 3 fields match words in field1, I would like to do a calculation that assigns points based on the amount of keywords in field1. In this case each of the 3 words is worth 10 points so my calculation field would equal 30 points.

What I'm not sure how to do is to match the keywords with the line of test. Hopefully I explained this right and thanks in advance for the help.

William

Maybe something like...

gKeyword1 = global field

gKeyword2 = global field

gKeyword3 = global field

gPoints = global number field

Let ( m = " " & gTextField & " ";

gPoints * ( PatternCount ( m ; " " & gKeyword1 & " " ) +

PatternCount ( m ; " " & gKeyword2 & " " ) +

PatternCount ( m ; " " & gKeyword3 & " " ) )

)

  • Author

That works great! Thank you so much for your help John!

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.