By Steel Rat on
Hello All,
I've created a content type which has some simple CCK fields, mostly just text fields. I've re-named the title to Serial Number, since Drupal requires that the title be unique. However, I cannot figure out how to force the title field to save/display in upper case only.
Anyone have any ideas?
Thanks,
Comments
Use CSS
You could use CSS to make the field display uppercase only. Use the declaration "text-transform: uppercase;".
Thanks for the reply. I'd
Thanks for the reply.
I'd rather have it saved to the database that way. I supposed I could alter the field in the DB, but not sure what problems that may cause Drupal.
i think i'm close
using a custom module, i got this far. it limits how many characters can be entered at 7, but i wish it forced uppercase for my serial numbers. any PHP ninjas got an easy fix?
something like:
$form['title']['#text-transform'] = uppercase;
?
What are you using to
What are you using to generate serial numbers?