letters to be entered in a field

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
pasbonte
Veteran Member
Posts: 162
Joined: 2013-02-06 09:49

letters to be entered in a field

Post by pasbonte » 2023-03-10 07:45

Hello,

I searched the forum but I couldn't find it. How do I force capital letters to be entered in a field?

THANKS

User avatar
zibrahim
Veteran Member
Posts: 137
Joined: 2020-01-28 18:30
Location: Malaysia

Re: letters to be entered in a field

Post by zibrahim » 2023-03-10 13:16

You can try the following code

Code: Select all

// Set input to automatically convert to Uppercase. File hooks/tablename-dv.js
$j('#FIELDNAME').keyup(function () {
		$j(this).val($j(this).val().toUpperCase());
});
change the FIELDNAME to the actual field name

Happy coding.
Zala.
Appgini 24.10.1579, MacOS 14.3.1 Windows 11 on Parallels.

Post Reply