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.

Select a particular number from a field with a calculation..

Featured Replies

I am trying to setup a calculation to select a number or letter from a field.  Like Social Security number.  I have that field and put in the social security.   But for a form i want each number to go in a field so i can use on a form.  If i use left(ssnumber, 1) i am good it is the rest that is tricky. is there any help out there and thanks in advance,  I tried the middle function but that i did that wrong.

Edited by Koonce

52 minutes ago, Koonce said:

I tried the middle function but that i did that wrong.

The Middle() function is the right approach here:

Middle ( SSN ; 4 ; 1 )

will return the 4th character in the SSN field.

 

52 minutes ago, Koonce said:

i want each number to go in a field

Instead of defining a separate field for each character you can use a single repeating calculation field =

Middle ( Extend ( SSN ) ; Get ( CalculationRepetitionNumber ) ; 1 )

 

Edited by comment

  • Author

that worked perfectly and if there is no number it will give a 1 just asking

the reason i used a field is the form i was putting it on had different spacing

 

2 minutes ago, Koonce said:

if there is no number it will give a 1 just asking

Sorry, I am not sure what you're saying here. If there is no character at the specified position the result will be an empty string.

 

  • Author

in the calc Middle( SSnumber ; 1 ; 1) i assumed the first number was the position the second number was returning a 1 if there was nothing in the position spot.

 

  • Author

ok thank you for the help

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.