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.

Calculation from a text string

Featured Replies

I have a field called "topic_id"...contains information such as "8BS".

I want to set up a calculation field that uses information within the text string to calculate data.

eg if the text string contains "8" then "Year 8" is generated.

in a separate field...if the text string contains "8" then "Stage 4" is generated.

I can't identify a text function that does this...is there one or do I need to make up a script?

TIA

Stephen K

The TextToNum() function will return any numbers in a field with the text stripped off. Then you can use them in a calculation as necessary. If the data may contain more than one number separated by text, it gets a bit more complicated.

Stephen K:

The PatternCount() function can be used in combination with Case() to conditionally do all the string generation for you...

Case(

PatternCount( topic_id ; "8" ) ; "Year 8" ;

PatternCount( topic_id ; "7" ) ; "Year 7" ;

...

)

BobWeaver: good to see you back!

Hi Vaughan,

Yeah, Nice to be back. Got abducted by those pesky aliens again.

Yeah it's hard having to type while standing up. LOL

  • Author

Thanks fellas

Both do what I need...its good to have options!

Stephen

Yeah it's hard having to type while standing up. LOL

Well, I wasn't going to say anything about that.

grin.gif

Create an account or sign in to comment

Important Information

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

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.