If you want the keyword to work based on thier location, I would think the first column should be location, not manager. The second column should be manager. I assume you either have a separate document for each manager that includes his/her location and are categorizing the view on location (first column), then displaying the manager field (second column) or have one document with a location field and a multivalue field for manager name and that is being displayed in the second column.
In any case, this code should work as the formula for the manager lookup on the form.
In the Choices section of the Field Properties box, choose Use Formula for choices. Enter this forumula.
ManagerByLocation is the name of your view.
Location is the name of the location field.
In the Location field, in the Options section of the Field Properties box, select Refresh Fields On Keyword Change. This will make the Manager field refresh choices if the user changes the Location.
Put this in the Translation formula of the Manager field. If there is only one manager for the selected location, it will automatically fill in. If the current manager selection for the current location is no longer valid, the Manager field will be blanked out.
Choices := @DbLookup(“”:”NoCache”;””:””;”ManagerByLocation”;Location;2);
@If(@Elements(Choices) = 1; Choices;
Manager != “” & @IsNotMember(Manager; Choices); “”;