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
devfredevfre 

Need to Prevent cursor Movement

Hi,

 

  I'm having a picklist field which is associated with the onchange action support event. whenever i changes the picklist value, the cursor goes to some other field. How to prevent that.

 

My code:

 

<apex:inputField value="{!picklistfield}" style="width:220px;">
                            <apex:actionSupport event="onchange" action="{!method}" rerender="Section"/>
                            </apex:inputfield>

 

Pls suggest as this is urgent

LakshmanLakshman

can you confirm the return type of method named "method", if its PageReference try changing it to void.

 

Let me know if it helps

 

Regards,

Lakshman