I have some exposed filters with autocompletion but they don't have autocomplete. In a non Entity Reference View Widget view it works.

Does anybody else have this issue?

Comments

kingswoodute’s picture

Yep same issue.

bojanz’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Issue summary: View changes
Status: Active » Fixed

Should work fine in the 2.x branch, we've reworked the exposed filter integration.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

dr.admin’s picture

Hi!

I have version 7.x-2.0-beta5, but it doesn't work with autocomplete exposed filter.

in function entityreference_view_widget_modal_form($form, &$form_state, $context) { i comment:

// Do not render the submit buttons if there's no views result.
// if (!empty($context['view']->result)) {

After that i see submit button.

dr.admin’s picture

Status: Closed (fixed) » Active
jsacksick’s picture

What's the relationship between the submit button and views autocomplete filter? When there's no result in the view, we're just hiding the buttons, that's it... What would you have to submit?

dr.admin’s picture

Results in the view with autocomplete show after user input value in autocomplete field.
Process of editing:
1) Open window and View has no results, because we did't input autocomplete field;
2) User inputs value for autocomplete field;
3) View shows results, but we don't see submit button.

jsacksick’s picture

Status: Active » Fixed

I removed the $view->result check as you suggested, it's kind of weird to have a submit button where there's no result but I don't have a better solution at the moment, thanks for reporting this.

  • jsacksick committed 984f62a on 7.x-2.x
    Issue #1506658: Display submit button even if there's no result in the...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

El Alemaño’s picture

Hi,

Can anyone explain me how to add an exposed filter?

Thanks!