Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4805 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi All,

I want to validate a field to be not empty and contain a specific number of digits if the text in another field meets specified criteria.

I have a field called Account_type, if the choice in that field is "Account" then I want to force the inclusion of a ten digit account number in the Account_Number field but only if the text "Account" is specified. I know this should be an easy If or Case statement but I am not getting it right.

Posted

Case(

account_type = "Account" ;

not isempty( account_number) and length( account_number ) = 10 ;

1

)

Posted

Case( account_type = "Account" ; not isempty( account_number) and length( account_number ) = 10 ; 1 )

Thank you Vaughan, that works. Would you explain the 1 as the second part of the Case statement please.

Posted

Try =

Account_Type ≠ "Account"

or

Length ( Account_Number ) = 10

Thank you Comment, this also works. Is there a functional difference between this and Vaughan's method

This topic is 4805 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.