Activity Forums Salesforce® Discussions How to remove focus from first input field in Salesforce?

  • How to remove focus from first input field in Salesforce?

    Posted by Tanu on September 7, 2016 at 2:20 pm

    Hii All,

    By default, the focus is set to the first available inputField.

    I want to shift it on another field because in my case, the first input is a date field. Every time I go to the page, the focus is set to that field and the calendar pops up, covering items below it.

    PRANAV replied 8 years, 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • PRANAV

    Member
    September 8, 2016 at 5:59 am

    Hi Tanu,

    You can try this

    <script>function setFocusOnLoad() {}</script>

    Hope this will work for you.

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos