• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Capital letters

Capital letters 13 years 3 months ago #16167

  • kriekske
  • kriekske's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Hi there,

how can I record alphanummeric fields as capital letters only, regardless on how the input by the user was done?

Example: field "Name"
Input: "Van der krieken"
Result: "VAN DER KRIEKEN"

Thanks!
The administrator has disabled public write access.

Re: Capital letters 13 years 3 months ago #16186

  • daajestaa
  • daajestaa's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 3
Just add a CSS rule. For example:

input {text-transform: uppercase;}
The administrator has disabled public write access.

Re: Capital letters 13 years 3 months ago #16189

  • kriekske
  • kriekske's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Thanks for the tip. However - sorry for my ignorance - where should I add this command? I tried putting it in the "additional atributes" field
The administrator has disabled public write access.

Re: Capital letters 13 years 2 months ago #16598

  • royce
  • royce's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 52
  • Thank you received: 5
Hi there, just browsing this forum and I ran across this. If you want all of your input fields on the form to be uppercase, then just put that line in your form or template css. If you only want one field, then it is a lot more tricky. This doesn't seem to be as simple as it should be because RSFP doesn't provide nice classes, etc for each form field.

One way it could be done is a lot more complicated than it should be: Use jQuery/Javascript to automatically add a class to the specific field name - that class would be defined in the css to do the text-transform uppercase.

Let us know how you get along or if RSFP provides a simpler solution.
The administrator has disabled public write access.

Re: Capital letters 13 years 1 month ago #16639

  • paolors1
  • paolors1's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 1
I use add the following line in attributes tab of my field:
onChange="javascript:this.value=this.value.toUpperCase();"
The administrator has disabled public write access.
The following user(s) said Thank You: theworld

Re: Capital letters 13 years 1 month ago #16643

  • royce
  • royce's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 52
  • Thank you received: 5
The issue with using Javascript like that is that the user sees a weird swtich in the characters as they type. The character initial shows as lowercase, then it gets switched to uppercase - which looks odd to me.

A .css class would not exhibit that behavior.
The administrator has disabled public write access.

Re: Capital letters 13 years 1 month ago #16647

  • paolors1
  • paolors1's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 1
I know what u mean, but i use it to uniform my data forms in backend. :)
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!