Jump to content

Filter Emirates ID


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

Recommended Posts

The question is not quite clear. If i am guessing correctly, you want to make the field auto-enter calculated value (replacing existing value) =

Let ( 
digits = Filter ( Self ; "0123456789" ) 
;
Replace ( Replace ( Replace ( digits ; 15 ; 0 ; "-" ) ; 8 ; 0 ; "-" ) ; 4 ; 0 ;  "-"  ) 
)

This would allow you to enter the ID as digits only or already formatted and have the auto-entry re/format it to the pattern you show.

The field itself should be of type Text, of course.

 

  • Thanks 1
Link to comment
Share on other sites

thanks a lot for reply yes this is what I need but if I need more professional in case visitor put more than 15 number or missing number should give him show dialog or error

Link to comment
Share on other sites

If it's important to have exactly 15 digits, then you should validate the field using a calculation =

Length ( Filter ( Self ; "0123456789" ) ) = 15

In addition, you can use a script trigger to check the field before it is validated; this allows you to provide a nicer user experience compared to the built-in validation error message.

 

  • Thanks 1
Link to comment
Share on other sites

This topic is 1263 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.