Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
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.