I am creating a field where users can enter the price of an item they are selling.
So I installed the Formatted Numbers and Format Number API modules. This way users are forced to only enter numbers into the field. Is there anyway I can some how enter the symbol, $, before the box that users are suppose to input price in? This is because when using the Formatted numbers field, if users enter "$43.99" into the field, the output always turns out to be "0.00"
I was thinking about putting the dollar symbol into the label of the feild, but by default, Drupal enters a colon after the label, then shows the input feild. So basically it would come out like this:
Price $: _______
I want to show like this:
Price: $________
I was thinking about isntalling the Money feild module, but I don't want to clutter my site with so many advance modules just to do simple things like entering the $ symbol before the input field.
Comments
Use the CCK integer module...
Use the CCK integer module... however, be aware that everything will have to be rounded to whole numbers and it will not accept at dot ( . ) because it's not an integer. So if your products are $13.70, $19.46, etc... this won't work.
I solved it with just CSS
I know this is an old question, but just for future reference, I use a simple CSS rule:
.field-field-price .field-item:after { content: "€"; }*******************
http://www.designagent.sk/