function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Formatting a inputField

Hello everyone,


I was formatting some outputText informaton the other day, but now I have the opposite. Formatting input. My code is like so


<apex:column style="width: 60px;">
      <apex:inputText value="{!item.QuoteLine.Standard_Unit_Cost__c}" style="width: 60px;"/>
     <apex:facet name="header">PE/Standard Unit Cost</apex:facet>
     <apex:facet name="footer">
         <apex:outputText value="${0, number,###,##0.00}">
             <apex:param value="{!hardware.totalPE}"/>


Basically, it comes out as something like '20.0' and in this case I'd like for it to come out as '20.00'


Any recommendations?


I've used this successfully in the past:


<apex:outputText value="{0,number,0.00}">
    <apex:param value="{!TotalCalculatedValue}"/>




It's not for the outputText, it's for the inputText value.