Skip to main content Take our 5-minute Community Survey. Open now through 4/11/2025. Click here to participate.
I want to call a method from controller extension on the onfocus event from Visualforce Code.My Controller Extension method has a System.debug statement. The following debug method call is not displayed in the Developer Console.

Visualforce Code where call to Controller Extension's method is made:

        <apex:inputField value="{!SomeLookupField}"  onchange="getMethod()"/>

Controller Extension Code:

             public PageReference getMethod() 

               {

                       System.debug('inside method getMethod()');

                }

 

I tried to refer to several posts on the developer forum but it does not seem to work still.

Can you please suggest on this?

 
5 answers
Loading
0/9000