Trying to limit the number of posts the view returns when the page (containing the view) is called without a URL parameter
Pretty standard filter:
wpv-filter-start hide="false"]
[wpv-filter-controls]
[wpml-string context="wpv-views"]<b>email:</b> [/wpml-string]
[wpv-control-postmeta type="textfield" field="wpcf-email" output="legacy" auto_fill_default="cjstumpf@gmail.com" url_param="email"]
[wpv-filter-submit output="bootstrap" class="btn-secondary"][wpv-filter-reset output="bootstrap"][wpv-filter-spinner spinner="hidden link"][/wpv-filter-spinner]
hidden link
I expected the default email address would have been applied
Also, same issue if SUBMIT with a blank email field or RESET
Thank you, BTW excellent support in every case I've submitted
Hello,
The "auto_fill_default" attribute is for "text to be displayed as the default option", it won't apply any parameter to the query.
In your case, you can try wpv_filter_query filter hook, and change the query of views, see our document:
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query
And similar thread:
https://toolset.com/forums/topic/set-default-value-in-a-select-box-search/#post-452500