How to show apex:inputField on the VF page with pre-defined value as just text:
In the below screenshot, the task status is shown as 'Completed', I want to do the same on the VF page that I am building:
I tried doing this <apex:inputField value="{!Task.Status}" html-readonly= "TRUE"/>
but it shows the error :
Cannot override attribute 'readonly' on component
Any suggestions?