Hi,
I needed a very simple filter for the default select list, and the Views widget was too much power and too complex for such a small requirement, so I've built an additional widget allowing to choose one of the field of the target entities to filter the list before displaying it (ie. Choose a zip code before choosing a school, so the entire list of schools is not displayed first).
I don't know if it can be included in this module or if I have to create a contrib one… let me know!

Comments

jdanthinne’s picture

StatusFileSize
new6.92 KB

Updated patch to make it work with profile2 and field_collection as well.

jdanthinne’s picture

StatusFileSize
new6.98 KB

Small bug fix for multi-valued fields.

jdanthinne’s picture

StatusFileSize
new7.02 KB

And another small bug fix for profile2 registration page.

chris matthews’s picture

Issue summary: View changes
Status: Needs review » Needs work
Issue tags: +Needs reroll

The 6 year old patch in #3 to entityreference.module does not apply to the latest 7.x-1.x-dev and if still relevant needs a reroll.

Checking patch entityreference.module...
Hunk #1 succeeded at 760 (offset 47 lines).
Hunk #2 succeeded at 811 (offset 47 lines).
error: while searching for:
      return $element;
    }
  }
}

function _entityreference_autocomplete_validate($element, &$form_state, $form) {

error: patch failed: entityreference.module:872
error: entityreference.module: patch does not apply