0
<apex:pageBlockSection>  
  <apex:inputField value="{!Sobject.field}" required="true" rendered="{!Sobject.field1 == ''}">
    <apex:actionSupport event="onchange" action="{!getInfo}" rerender="frm"/>
  </apex:inputField>
</apex:pageBlockSection>

In this case, action should be triggered whenever a character is entered or deleted from the field. But for me, it is triggered only when the field is out of focus for the same code.

3

The onchange event will re-evaluate the field value upon focusing in or out. You need to use one of the following events instead:

"onkeydown", "onkeypress", "onkeyup"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.