To filter a ServiceNow catalog variable based on the values of other variables on the form, use the following syntax
//assuming the reference table has a field called location and the record producer has another variable called incident_location
javascript: 'location=' + current.variables.incident_location