Hello,
I'm looking for a way to require a minimum number of characters in a required field. For instance, I have a text field that is required to have information typed into it, but anyone can just type the letter A into it for example and the field will be satisfied. I know that I cannot force someone to put meaningful sentences in the field, but at least I can force a minimum amount of characters perhaps. Any ideas would be appreciated.
Thank you,
David
Required with Min Char
Re: Required with Min Char
Code
On save *
* Should be localized automatically
Code: Select all
// file: hooks/TABLENAME-dv.js
$j("#FIELDNAME").attr("minlength", 3).attr("required", "required");
* Should be localized automatically
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.10 Revision 1579 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.10 Revision 1579 + all AppGini Helper tools
-
- Veteran Member
- Posts: 101
- Joined: 2019-05-26 18:38
Re: Required with Min Char
That is awesome Jan. Thank you!
David
David
SOLVED: Required with Min Char
Great, thx!
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.10 Revision 1579 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.10 Revision 1579 + all AppGini Helper tools