List Manager Forum

Force upper case in input text field

User moon_1284 2013-11-19 14:05:36

Is it possible to force uppercase in a text field of a form. There is a CSS Class field but I am not sure how this affect the final input.

Moonsoft support 2013-11-19 19:55:48

Hi,
using css you can't force user input to use uppercase, you can add a class to your css and assign it to your inputs class:

.uppercase
{
text-transform: uppercase;
}


but this changes only the view, the value of the field remains as typed, so it will be stored that way.

Regards

User moon_1284 2013-11-30 13:16:20

So is there no way I can force the entry of uppercase like I can force a numeric field or an alpha field?

Moonsoft support 2013-12-01 12:02:52

Hi,
not using css classes or default validators, that kind of validation can only be added using custom javascript that would be specific for your form. We could build such custom code to add to the front-end view, if you are interested in getting a quote please place a ticket at the helpdesk regarding this requirement.

Thanks, regards

User moon_1284 2013-12-04 17:09:56

Can you point me in the direction of the code that edits the input for the form. I think adding the code will not be a problem for me.

Moonsoft support 2013-12-04 17:32:40

Hi,
the fields are created dynamically as they are placed according to the custom html layout, so its not a simple code, but in case you want to give it a try, they are generated here:

joomla\modules\mod_listmanager\tmpl\content.php

line 958 to 973.

Hope this helps, regards

User moon_1284 2013-12-08 12:54:31

Thanks for that - I have submitted a ticket for you to complete the work - complex to say the least.

...
List Manager

Build different lists for your site

Buy now!
...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!