+ Start a Discussion
Pooja05Pooja05 

Unable to update object when inputFields are used

I have a custom VF page for a custom Object.

When the quote is created for the first time, the following code works fine

<apex:inputField value="{!quote.Comments__c}"/>

 

On click of save there is a insert quote command.

 

While editing the edited values are not reflected on the screen, as I try to change them they dont bind to the input field.

 

For e.g in a drop down value, when I change the value from Yes to No. It still shows Yes.

 

So when I go to Update Quote, it reads the value Yes instead of no. 

 

Can you please help?

 

 

Thanks,

Pooja

Ron HessRon Hess
can you reduce your page to a simple example of what you are doing, and post the page and controller with the code button so that we can identify what is missing?
Pooja05Pooja05

I realized my error while i was writing a simplified version of the code for posting it on the discussion board.

 

 

Thanks,

 

Pooja