Filter for a lookup field: Value in field cleared on Edit

Filter for a lookup field: Value in field cleared on Edit

When I edit a record with av lookup field with filter based on an other field in the form, the field value of that field is cleared when form is loaded. Is there any work around to secure that the vaule is kept in the field?