First field with focus active

First field with focus active

klermannklermann Posts: 277Questions: 67Answers: 1

Hello. What configuration and / or where do I use Datatable to leave the first field with focus active as in the image?!

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,142Questions: 1Answers: 2,586

    Hi @klermann ,

    If that's an Editor form, then the first field should have the focus already. If it doesn't you can set it manually with field().focus(),

    Cheers,

    Colin

  • klermannklermann Posts: 277Questions: 67Answers: 1
    edited October 2019

    .

  • klermannklermann Posts: 277Questions: 67Answers: 1

    Hi @colin. Yes, this is a Datatable Editor form and it sets focus within the code in the Editor as shown in the example, yet the field does not get focus. I tried to set by jquery in the same way that is not positive. What may be happening?

  • colincolin Posts: 15,142Questions: 1Answers: 2,586
    Answer ✓

    Hi @klermann ,

    Try with form-options instead, like here. That should do the trick,

    Cheers,

    Colin

  • klermannklermann Posts: 277Questions: 67Answers: 1

    Thanks

This discussion has been closed.