Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
and when i am trying to chenge from Account.rating to account.Prospect i am recieving error : Error: Could not resolve field 'Prospect' from <apex:inputField> value binding '{!Account.Prospect}' in page custom
Greetings to you!
Below is the sample code which I have tested in my org and it is working fine. Kindly modify the code as per your requirement.
Visualforce:
Controller:
Or you can use the below code also:
Please refer to the below link which might help you further.
https://success.salesforce.com/answers?id=9063A000000pYEyQAM
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas