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
Justin DenningJustin Denning 

Record not Updating if a Field in the Form has Focus

I have a form with an inputText field and a commandButton that updates the record, and it updates the field(s) correctly as long as the field doesn't have focus.  However, if the cursor is in the field and the user clicks the update button, the record does not update.  Is there a way to get it to update if the user leaves the cursor in the field?

User-added image
Suraj PSuraj P
Maybe try grabbing focus on the 'update' button when its clicked, before calling the action. $('update').focus()?
VineetKumarVineetKumar
Can you share your VF code here?