203 Posts
louispapera
10 years ago
6
Topic

Good morning, I am going to do a new form and I need that an input field could be only uppercase character when I use it,  both for form and content types and list and search types. 

How can I do it, please ?

Best regards, Louis

Get a Book for SEBLOD
4229 Posts
Kadministrator
10 years ago
5
Level 1
http://www.seblod.com/products/1865

Hi,

you can use this validation plugin o check characters are only uppercase

203 Posts
louispapera
10 years ago
4
Level 2

Thanks for your early reply, klas.

I woud like to know if this plugin control caracter only in input phase or transform character in uppercase then user insert it.  

I think this problem is solved also with a JS istructions but I do not know as do. It is only for a field.

Anyone could help me, please.

Regards, Louis 

4229 Posts
Kadministrator
10 years ago
3
Level 3

THis lugin only checks if input is uppercase and blocks save until it is so. To convert letters you could use beforStore php plugin and use this function

http://php.net/manual/en/function.strtoupper.php to convert it to uppercase

203 Posts
louispapera
10 years ago
2
Level 4

Hi Klas, thanks, it is much for me, I am not very expert.

I know that there is a way in JS that I can insert in the section STUFF of the field. 

Please see also later topic where terveg give me some suggestions about this issue. Truerly, in this topic I had another problem that solved Randy.

http://www.seblod.com/community/forums/fields-plug-ins/character-and-uppercase-letter#post20019

Now problem is different, I need to insert data directly in uppercase. Have you any idea about istruction to insert ?

Many thanks, Louis

4229 Posts
Kadministrator
10 years ago
1
Level 5

Hi,

validation plugin will force users to insert only uppercase characters. Is this not good enough?

203 Posts
louispapera
10 years ago
0
Level 6

Thanks klas, I'll try to figure out if there is a better solution.

Regards, Louis

Get a Book for SEBLOD