Activity Forums Salesforce® Discussions What is the difference between < apex:inputText / > Vs < apex:inputField / > ?

  • What is the difference between < apex:inputText / > Vs < apex:inputField / > ?

    Posted by MOHIT on August 26, 2020 at 1:28 pm

    What is the difference between < apex:inputText / > Vs < apex:inputField / > ?

    Pooja replied 4 years, 2 months ago 4 Members · 3 Replies
  • 3 Replies
  • Anjali

    Member
    August 26, 2020 at 1:40 pm

    inputField - copy the field from any object and display on a VF page | like copy paste work.
    inputText - it will help to create a field from scratch | new creation

  • Shweta

    Member
    August 27, 2020 at 3:28 pm

    <apex:inputText/> : It always renders a normal text field. It can be bound to an SObject field or a regular variable of any data type that can be coerced into text, including numbers. It can be bound to an SObject field or a regular variable of any data type that can be coerced into text, including numbers.
    <apex:inputField/>: It can't be used on non-SObject variables and automatically renders the correct control based on the field's definition. If the user cannot edit that field because of FLS, then the inputfield instead renders as a read-only outputField.

  • Pooja

    Member
    August 27, 2020 at 6:44 pm

    inputField - copy the field from any object and display on a VF page | like copy paste work.inputText - it will help to create a field from scratch | new creation

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos