request focus on field in portal

It is not possible to do a requestFocus on a field (in the current row) in a portal.

Is this possible in the future?

it’s on the list, but it is not that easy to do..
But it is on the planning to give the portal component java script methods for things like that.

I would like to have this feature too.

Thanks

This does allready work!! :slight_smile:

Can you show me how I can I requestFocus to an object which is inside a portal?

Currently it does nothing if I do something like the following:

forms.myForm.portalFieldName.requestFocus()

No, you have to give the field (in the portal) a name and do this:

elements.fieldname.requestFocus()

Yeah! I was already doing the same thing. But there were quit a lot of statements after that requestFocus statement that might had caused the focus problem. Now I moved the statement to the end of the method and it worked like charm.

Yes, you allways has to do a requestfocus at the end!

Understood. Thanks!!