cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Focus on InputField

Former Member
0 Kudos

Hi Experts,

I have created 3 input fields in a view.

I set focus on First Inputfield

When i click Tab in keyboard the focus went to address bar.

I want to set the focus on next inputfield when i click tab .

Plz give me suggestion

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hazrath,

Keep all the input fields in a transparent container. Make sure the 'labelFor' property of the Labels for the input fields, point to one of the inputfields. (otherwise, tab focusses on label instead of inputfield.

Try and let me know.

Regards,

Rajit

former_member485701
Active Participant
0 Kudos

Hi ,

Tab will always take you to the address bar, either you set the focus or not.

For moving focus to other inputfield, you have to handle it in onEnter of first Inputfield.

Regards,

Praveen

Former Member
0 Kudos

Hi,

I think there is no event fired on pressing TAB key in your input field and thus can't handle the way you are asking for.

Generally, the tab sequence is followed as the UI elements are arranged in your view.

Regards,

Murtuza