Msaeed Posted October 12, 2020 Posted October 12, 2020 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....
comment Posted October 12, 2020 Posted October 12, 2020 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. 1
Msaeed Posted October 12, 2020 Author Posted October 12, 2020 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
comment Posted October 12, 2020 Posted October 12, 2020 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. 1
Recommended Posts
This topic is 1754 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 accountSign in
Already have an account? Sign in here.
Sign In Now