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

I have two fields, serial_no and vehicle_id and I want to say if the serial_no is empty then the vehicle_id has to be 17 characters long, but if there is something in the serial_no then don't worry about the vehicle_id.

I wrote:

case(serial_no = " ", length(vehicle_id)=17)

but it doesn't work because whether or not there is something in serial_no it still comes up saying I need something in the vehicle_id.

How would I fix this?

Do you mean that if there is something in the Serial ID then you:

a. still need a vehicle ID but length doesn't matter, or

b. don't need a vehicle ID at all?

You can do both of these by validating the vehicle_id field.

For A:

(IsEmpty(serial_no) and Length(vehicle_id) = 17) or

(not IsEmpty(serial_no) and IsEmpty(vehicle_id))

For B:

(IsEmpty(serial_no) and Length(vehicle_id) = 17) or

(not IsEmpty(serial_no) and not IsEmpty(vehicle_id))

Then show an appropriate validation message like:

"If the serial number is empty, then your vehicle id must be 17 characters long.

If you have entered a serial number... etc etc"

  • Author

Thanks so much Russ that's exactly what I needed.

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.