Exact number of characters in the text field? 
Автор: Sinisa B.
Просмотрено 72,
Подписчики 1,
Размещенный 0
Hello everyone!
How do I set up a "text field" in a form so that a specific number of digits (characters) can be entered?
For example, how do I code a text field to accept exactly 15 characters (digits) and to report an error if the number of digits is smaller or larger?
Thanks in advance for your help!
Размещено
Propably our friend KolAsim will find a solution via js
... it's well known that, for my part, without a LINK(!) and without the type of string to check, I can't evaluate...!....
... however, for information purposes, a simple check like the one relating to the tax code could be used...
... otherwise, by now it's become elementary for everyone to consult IA...
.
ciao
.
Автор
@ Axel and KolAsim
Thank you, guys!
So, AI will soon be running our forum?!
I would normally put a smiley face there, but from what I've read - almost all office jobs (including programming) will be replaced by AI until 2030.
If that meant that people would no longer have to do dangerous, stupid and boring jobs, that would be OK, but I feel like the future is much darker...
Best!
... if you ask for EXTRA solutions not currently provided, it's the least you could do...
...on certain occasions, I've given additional suggestions on IA code posted by others and applied to the Project....
...possibly, wait to see what the experts have to say, ...but if you post the LINK to the module and the type of string to check as requested above, and let me know, I'll come back here...
.
ciao
.
Like Said KolAsim with ChatGPT the solution is...
Find by an Inspect the name field
And into page Propreties you can copy his copy to check field lenght
Hope this helps
Axel
...excellent, and simple, ...now there are no more limits to anyone's imagination...
.
ciao
.