WPIntell

Source evidence

Auto-submit form

Autocomplete For Relevanssi · support · 2019-01-07T21:43:00+00:00

complaintsentiment
mediumseverity
0.74relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

2 / 31 rows with source links

6.5% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

29 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
trevasco unresolved
Is it possible to auto submit the search form after selecting an autocomplete list item? I feel like this is expected behavior and should be there by default, considering google, youtube, bing and pretty much any search out there with autocomplete has this feature. I’ve tried writing custom scripts to submit the form when these are clicked, but it seems something in the source code is preventing the click events from firing. 1/ go to file awseomplete.js 2/ Search for this code: _.REPLACE = function (text) { this.input.value = text.value; 3/ add this line: $(‘input[type=submit]’).click(); works great. How can i display the preloader instantly after user click on the search suggestion? it works when I come from main search form added in header. I have another form in Search results page. If user uses that form then the above code cannot works. Can you please guide that how to make it run for search results form also?

Comments

3 shown
Kristof Bernaert 2019-02-20T11:49:00+00:00

1/ go to file awseomplete.js 2/ Search for this code: _.REPLACE = function (text) { this.input.value = text.value; 3/ add this line: $(‘input[type=submit]’).click();

tariqaltaf 2019-03-28T16:40:00+00:00

works great. How can i display the preloader instantly after user click on the search suggestion?

tariqaltaf 2019-04-08T15:19:00+00:00

it works when I come from main search form added in header. I have another form in Search results page. If user uses that form then the above code cannot works. Can you please guide that how to make it run for search results form also?