onChange - refresh field

I’ve a form on web.

The field ‘name’ is of type text - editable.

The field ‘adr’ is of type text - computed with a dblookup using the field name.

When the user change the field name (typing, not choosing from a list), I want the field adr to be refreshed. How can I do this?

Subject: onChange - refresh field

Domino writes a built in function for this very purpose: [_doClick]. View source on your form through a browser to see this function.

It is usually called by the [onchange] event of keyword fields (select boxes). You can use it by manually coding some JS into your editable field:

onchange=_doClick(‘$Refresh’, this, ‘_self’, ‘’)

Where data is entered into the field (field data changed), on ‘tab out’ the [_doClick] function will be called and the form reloaded.

Subject: Thank you - it worked !!