Activity Forums Salesforce® Discussions How to disable input field in visualforce page in salesforce?

  • Nikita

    Member
    November 4, 2019 at 5:39 AM

    Hi Prachi,

    I guess you can use this

    html-disabled=”true”

    <apex:inputField id="acctparent"  styleClass="acctparent" value="{!account.ParentId}"  html-disabled="true"  />

     

  • [adinserter block='9']
  • Shubham

    Member
    May 21, 2020 at 12:17 PM

    Hi @Prachi/@Nikita,
    It doesn’t work, Html-disabled always disables the text box, irrespective of the true or false value provided to it. Is there any other way you can provide.

Log In to reply.