Expand my Community achievements bar.

how to set focus on drop down list

Avatar

Level 1

I've a drop donw list and when the user click on a record of the list, i'ld like to set the focus on the previous record.

Can u help me pleassse

2 Replies

Avatar

Former Community Member

I'm not sure if you can detect the "previous" element, it may be possible through tab order perhaps.

But you could use the drop downs change event, to set the focus to any field by hard coding it:

form.drop_down_list::change - (JavaScript, client)

     xfa.host.setFocus(form.previous_field_name.somExpression);