I think there is not (not sure). But what if more than one field has
focus set to True?

A workaround is to set focus on document load with jQuery in a view
script:

$(document).ready(function(){$("#no_table_cocNumber").focus();});

On Mar 5, 5:49 am, Annet <[email protected]> wrote:
> In my init_ajax.js file I set this:
>
> jQuery("input:text:not(.date):first:visible").focus();
>
> I have a form in which I set the first field to:
>
> form.element('#no_table_name')['_readonly']=True
>
> ... therefore, in this single form, I would like to give the second
> form field the focus (the form shares its view with other forms).
>
> Is there something like:
>
> form.element('#no_table_cocNumber')['_focus']=True
>
> Kind regards,
>
> Annet

Reply via email to