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.

Featured Replies

  • Newbies

Currently I'm working on a test Invoice system. Right now I just have two tables. One is Test_Main, and the other is Test_Invoice. Just for testing, I only have 3 fields in each; CustomerName, CustomerPhone, and CustomerComments. I'm relating the tables with CustomerPhone (because their phone number is their account). When I go to Test_Invoice and type in the phone number (with the dashes and such) I have the other fields doing a Look-up to get the name of the customer. My problem comes in when I want the phone number to auto format.

For example, user types 1234567890 hits enter and it formats the field and shows 123-465-7890. Doing this I just coded the following in the Calculated Value under Auto-enter:

:

Let (

[

rawPH = Filter ( CustomerPhone ; "0123456789" )

];

Left ( rawPH ; 3 ) & "-" & Middle ( rawPH ; 4 ; 3 ) & "-" & Right ( rawPH ; 4 )

)

}:(

Now, when I type in the phone number (12346790) and hit enter it formats correctly showing 123-456-7890 but the other fields did not retrieve data, like the customer name does not appear. However, when the user types the phone in correctly (123-456-7890) the customer name and the other fields display the data.

Could the reason be the calculations are running after the other fields do their look-up? If so, how can I fix this problem? I do not want a button running a script. I want this to be as simple as possible (like hitting enter and it works).

Using a phone number for a relationship is a BAD idea.

You should create a Unique Id for each client and use that for the relationship instead.

Lee

I agree with Lee. However, what you describe should be working, so check your work, esp. data types.

  • Author
  • Newbies

Ok, now I've added one more field. After the user types in the phone number i have a 3 fields doing a look-up. One is customer name, Account Number, and Comment. When the above code formats the number in the correct way... the look-up works with text fields but not numbers. The text fields are set up the SAME way as the number but the TYPE is different. Does anyone have an idea on whats goin on? OR does anyone have a better solution in auto-formatting the phone number and having other fields doing look-ups. (Must be able to use look-up based on phone number even if its a bad idea).

And By the way... thank you for your quick replys on the past post.

Edited by Guest

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.