Universal Form Validator PHP Support Product Page

This topic is locked
Answered

Changing a field to uppercase?

Asked 06 May 2011 10:35:22
1
has this question
06 May 2011 10:35:22 bernard delalande posted:
Hi,

Is there away to change a textfield value to uppercase before posting it to the database ?

Thanks.

Replies

Replied 31 May 2011 14:13:19
31 May 2011 14:13:19 Miroslav Zografski replied:
Hello Bernard,

The extension is not intended to alter the insert but to validate it.

If you need such a thing you probably be needing a bit of custom code to made this formating when the value is passed in the insert/update record behavior.

Regards,
Replied 13 Jan 2012 18:12:36
13 Jan 2012 18:12:36 Bobby Edgar replied:
Hi Bernard,

I see you posted this a while back, but I thought I would send along a fix.

Select the form you would like to ensure is Uppercase.

Go Up to "Tag Inspector"
Click "Behaviors"
Click an available box on the left and choose a function. I use onKeyup so the entered text changes to uppercase as they type.

In the box next to the function you picked, paste this code.

this.value = this.value.toUpperCase()

That'll take care of it for you.

-Bobby

Reply to this topic