Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

Former Member
Former Member replied

Hi Joseph,

The myFomId is the id provided in <form id="myFormId">

Below is the correct code(dont mention "InputField" in parameters of setFocusedControl method )

<hbj:inputField

id="InputSearch"

maxlength="<%=FFOrders.getMaxLength()%>"

type="string">

<%

myFormId.setFocusedControl(InputSearch);

%>

</hbj:inputField>

Hope this will help.

Thanks and regards,

Amol

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question