Try to put a condition on .setAutocomplete but get this error ValidationError: Expected a boolean primitive