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

I would like a script to control that the user entered the correct value in a field. And If the value is incorrect a pop-up should alert them.

The field in question is the social security number (swedish). A correct value could be: 570322-1453 (YYMMDD-XXXX).

Only numbers and a "-" as the 7th symbol is correct. Everything else is incorrect and should trigger the script onObjectExit.

Thanks in advance!

Why not use field validation?

You can use this in a second field and just enter your numbers with out the "-" ie you enter 5478546541 and you get 547854-6541

if you have Advanced you can make this a custom function and not need a second field, this would be prefered...

hope it helps


Let(

[$ssn = Filter(social; "0123456789");

$socialsecuritynumber = Left($ssn;6) &"-"   & Right($ssn;4)];

$socialsecuritynumber

)

why not take control of the field by converting the date and number by using separate parts.

Date Field

Number field

Calculation

Right (Year ( Date ) ; 2) & Left ( 0 & Month ( Date ) ; 2) & Left ( 0 & Day ( Date ); 2) & "-" & Number

120716-1453

120701-1453

amended for single digit days

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.