# Category: ng-tags-input

## ngTagsInput – Restrict removal of items on Backspace

In Angular 1.x, I added some custom code to handle this requirement(On hitting backspace items should not be removed), here is the code snippet $scope.hackForBackspace = function(){ // if backspace return false if(event.keyCode == 8){return false;} } This works fine in Chrome, but does not work in FF and IE. Always ‘Error: event is not defined’ is coming in console log. Even I tried to pass on-tag-removing=”hackForBackspace($event);” – that also not working. Event is undefined […]

## ngTagsInput – Form submits on tapping Enter in tags-input

I am trying to use a tag input field in my form using ngTagsInput module, but somehow he form gets submitted on tapping Enter to make a tag. How can I prevent this behavior so that I can just add tags and form does not gets submitted? I am using an input button with type=”submit” and ng-submit to submit the form. Source: AngularJS

## Multiple data of different type ng-tags-input

I want to enter multiple data of different types in to the ng-tags-input . Ex. String + Date + Number etc. But not like only strings or numbers. Please guide me, if any solution is there. Source: AngularJS

## After adding tags-input tag remaining form fields are disabled

In my angularjs application i added ngTagsInput directive for tags-input field but after adding this field at end of all form fields it is working and remaining fields are disabled and not working, then i changed it’s location from last to top of all other form fields now remaining form fields are working. I didn’t understand this behavior. My requirement is tags-input field must be at end of all fields. Source: AngularJS