function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
alaschgarialaschgari 

InputText gets 0 after form submit with error

Hey folks,

I have a Visualforce Page where I can order items out of a table.

I choose the quantity by writing an Integer value in a column with <apex:inputText> fields.

Once I submit the page with a command button and an error pagemessage occurs, the <apex:inputText> fields that I didn't fill with an Integer value get a standard value 0 instead of staying empty. Why?

 

S91084S91084

Is there any default value set on the quantity field? If so, it is displaying the default value.