You need to sign in to do that
Don't have an account?

Why inputfield not allow input data?
Code of Visualforce Page:
Show old contact infor of user and allow user edit (if not correct).
Result it display old information, but not allow input data.
Why inputfield not allow input data?
Show old contact infor of user and allow user edit (if not correct).
<tr><td>Sex:</td><td><apex:inputfield label="" value="{!contact.Salutation}" /></td></tr> <tr><td>First Name:</td><td><apex:inputfield label="" value="{!contact.FirstName}" /></td></tr> <tr><td>Last Name:*</td><td><apex:inputfield label="" value="{!contact.LastName}" /></td></tr> <tr><td>Email:*</td><td><apex:inputfield label="" value="{!contact.Email}" /></td></tr> <tr><td>Phone:</td><td><apex:inputfield label="" value="{!contact.Phone}" /></td></tr> <tr><td>Street:</td><td><apex:inputfield label="" value="{!contact.MailingStreet}" /></td></tr> <tr><td>City:</td><td><apex:inputfield label="" value="{!contact.MailingCity}" /></td></tr> <tr><td>State:</td><td><apex:inputfield label="" value="{!contact.MailingState}" /></td></tr> <tr><td>Country:</td><td><apex:inputfield label="" value="{!contact.MailingCountry}" /></td></tr> <tr><td>PostalCode:</td><td><apex:inputfield label="" value="{!contact.MailingPostalCode}" /> </td></tr>
Result it display old information, but not allow input data.
Why inputfield not allow input data?
May I request you please elaborate your requirement so that we can understand better and can help you accordingly.
What is that you are trying to achieve and what exactly is the problem you are facing.
Assuming that you want to input the data using input field and want to save the new record information to the database.
If that's the use case then below piece of code works fine. Please let us know if you are looking for something else.
Happy to help further.
Thanks,
Nagendra
Ex: <apex:inputfield value="{!contact.FirstName}" />
But result display on website is a Label (not textbox) , So user can't input a new FirstName if user want edit.