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.

Copying data from one field to another

Featured Replies

I currently have a phone number field in my database which is in the standard phone number format = xxx-xxx-xxxx

I have a script that will copy the data in the phone number field into a PID field which works, but i was wondering how i could script this to remove the hyphens.

So for example the phone number field would read 123-456-7891. Once copied, it should read 1234567891.

Thanks

Filter (yourField; "0123456789")

You can also use the substitute function

Substitute (yourField; "-"; "")

Edited by Guest
added Substitute

  • Author

Would that be a calculation set on the field or included in my script to copy the data from the field?

  • Author

Thank you for your response, after looking at the substitue line you added, it now makes sense and ive added to my scrit as setting the PID field as:

Substitute ( $PID ;"-" ; "" )

Works great, Thanks again!

Either one can be used in a script.

Set Field [Field2; Filter (Field1 ; 123456789 ) ]

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.