WebSite X5Help Center

 
Sinisa B.
Sinisa B.
User

Exact number of characters in the text field?  en

Autore: Sinisa B.
Visite 67, Followers 1, Condiviso 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!

Postato il
6 RISPOSTE
Axel  
Axel  
User
Utente del mese EN

Propably our friend KolAsim will find a solution via js wink

Leggi di più
Postato il da Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Axel  
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

.

Leggi di più
Postato il da  ‪ KolAsim ‪ ‪
Sinisa B.
Sinisa B.
User
Autore

@ 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!

Leggi di più
Postato il da Sinisa B.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Sinisa B.
@ Axel and KolAsim Thank you, guys! So, AI will soon be running our forum?! ... ... ... 

... 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

.

Leggi di più
Postato il da  ‪ KolAsim ‪ ‪
Axel  
Axel  
User
Utente del mese EN

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

Leggi di più
Postato il da Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

...excellent, and simple, ...now there are no more limits to anyone's imagination...

.

ciao

.

Leggi di più
Postato il da  ‪ KolAsim ‪ ‪