How to auto modify data for a autocomplete field input?