This project is not covered by Drupal’s security advisory policy.

The Nodereference autocomplete nid trim module is a simple module that uses JavaScript to remove the [nid:X] text when you select an item in a Node Reference field.

For example, if you have My Node Title [nid:384] in the input, jquery_autocomplete changes it to just My Node Title.

The module is very small and the development was started by logicalor which can be found here:
http://drupal.org/node/640832#comment-4082652

From this thread's module attachment, the bug fix/enhancement made (thanks to fourmi4x for sponsoring these bug fix/enhancement) are the following:

  • If there are multiple nodereference fields on the form, all these fields are filled in with the selected value
  • It does not work with nodereference fields that may accept multiple values
  • "On a nodereference field that accept multiple values, when clicking on "Add another item", it rewrites the [nid:xxx] bit in the first item, and removes autocomplete function in the second one... If try to use again a "simple value" nodereference field after that, the suggestion popup doesn't hide anymore."
  • Getting an "Out of memory at line 12" error on a form, or an "Stack overflow at line 19" error on a bigger form. This error only happens in IE, when clicking on the "Add another item" button. But after this error, the autocompletes don't work at all in these fields...
  • When there are multiple nodereference fields with multiple values in a form , filling in a first multiple values field works fine (using the "Add another item" button a few times). But when trying to fill in a second multiple values field, clicking on the "add another item" button removes the value from the first nodereference entered (happening at least on Firefox).
  • Incompatible with Active Tags module.

Project information

Releases