Forums Forums Search & Filter Pro Default value in dropdown with ACF + S&F

Tagged: , , ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Anonymous
    #189353

    Is it possible to have a default value instead of having “All Items” in the Choice – Dropdown? My customer wants a pre-selected language in the dropdown, for example: English not All Items.

    Im using ACF Pro. Shortcode method. Latest versions of all plugins.

    Trevor
    #189364

    With the current version of the plugin, this is not a feature, but I think it is something coming in V3.

    It is possible to do with custom javascript, but it gets complicated as that same javascript could then end up overriding any user selection.

    Anonymous
    #189372

    Great, if it becomes av feature in v3!

    I think I have solved it with JS. I used only this line:
    $(‘.sf-field-post-meta-doc_lang .sf-input-select’).prop(“selectedIndex”, 1);

    It selects the 2nd item in the dropdown. When I press the submit button it gives me the correct results.

    Using Ajax method for the results on the same page. It doesn´t display the correct results on page load, but that isnt necessary for me.

Viewing 3 posts - 1 through 3 (of 3 total)