Skip to Content
avatar image
Former Member

how to set focus to the input field on form load in jspDynpage

Hi can anybody suggest me how to set focus to the input field on loading the jspDyn Page?

Regards,

Joseph

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Apr 18, 2006 at 09:20 AM

    Hi Joseph,

    focusedControl can be used.

    Check with this link.

    http://help.sap.com/saphelp_nw2004s/helpdata/en/1d/2cff40e39ba854e10000000a1550b0/frameset.htm

    Eg:

    <hbj:inputField

    id="myInputField1"

    type="String"

    invalid="false"

    width="310"

    value="After editing press <Enter> to submit"

    visible="true"

    disabled="false"

    required="true"

    maxlength="30"

    size="50">

    <%

    myFormId.setFocusedControl(InputField inp_field)

    %>

    </hbj:inputField>

    Regards

    Harini S

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Dennis,

      I got just focus into the input field but there is no cursor blinking in that field.This suffice my criteria.

      Regards,

      Joseph