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
S@uravvS@uravv 

Apex:InputText is not setting value of the controller

I am using 
<apex:input type="text" styleClass="form-control"  value="{!InvoiceComments}" id="uploadInvoiceComments" onkeypress="return BlockSpecialCharacter(event)" html-placeholder="Comments" style="margin-bottom:20px;"/>
with other elements and then I am using Commandbutton to save it, but InvoiceComments is not getting updated.

I am stuck here for many days, tried different approach but not working please give any suggestions.
SwethaSwetha (Salesforce Developers) 
HI Sauravv,
Can you share the code snippet that I can use to repro the behavior to suggest better?

Related :
https://salesforce.stackexchange.com/questions/197747/apexinputtext-value-is-not-setting-on-the-controller
https://salesforce.stackexchange.com/questions/182321/apexinputfield-not-binding-value-to-controller