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

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

Recommended Posts

Posted

As per mentioned in topic ,I would create script help me to make" - " between number for Emirates ID include 15 like ...

783-1986-1234567-9

Thanks alot for any help....

Posted

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
Posted

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

Posted

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

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