You need to sign in to do that
Don't have an account?
psplrocks
Read Only property for input text
Is there any Read only property for an input text box in VF page.
I want to make the Text Box value readonly.
Ex:
<apex:inputtext style="border:0px;background-color:#F3F3EC;" size="30" disabled="false" value="{!inputText}"/>
can we make a textbox readonly in apex...if possible please help me..
Thanks
<apex:inputtext style="border:0px;background-color:#F3F3EC;" size="30" disabled="true" value="{!inputText}"/>
hope this helps..
Hey,
Thanks for the reply.
I used this property earlier but this property disables the entire text i just want to make the text a readonly value instead of making it disable.
Why not use an outputtext tag instead. Your field would display, but could not be updated.
<apex:outputtext style="border:0px;background-color:#F3F3EC;" value="{!inputText}"/>
Hi psplrocks,
Use the tag:<apex:outputtext/>
What if you are using a Datepicker to populate your inputText field and want to enforce the user to chose only the date picker ?