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"  />

     

  • 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.

Popular Salesforce Blogs

Popular Salesforce Videos