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

Focus going to Date field


In the VF page below, when the page loads, the focus goes to the "Encounter Date" field, which is a date field. This then causes the calendar pop-up to come as soon as a user loads the page, which is very annoying. Why is this happening?


Ron HessRon Hess

This element is the first in the page to get focus, when a date field gets focus it pops it's calendar picker.


you can set another field to have focus first , i think this is done with the tab order attribute, or the location on the page