Skip Navigation

[Resolved] Combining Text search AND filters on fields

This support ticket is created 2 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 3 voices.

Last updated by SJ5362 2 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#2348593

I am trying to set up a job search with several options to select and an optional text search
hidden link

If I fill in the text input alone, it is working : I get expected results.
if I fill just select options with the dropdown input .... well I can't !! the text search input seems to be "requiered' "where is that coming from?"
If i fill both the text search input AND select options : it is not working (!)

I'd like the text input to be used with a "AND" with the other filters if something is typed in.
and of course Id like the text input to be ignored if not filled in.

For your information I just defined the text input this way :
<div class="form-group search-emploi">
[wpv-filter-search-box placeholder="Rechercher votre type de poste par mot-clé" output="bootstrap"]
</div>
--> something is changing the placeholder from this text to another text ! and adding an HTML attribute "required". So what I did was to change the way I define the text input to :
<div class="form-group search-emploi">
<input type="text" name="wpv_post_searchemploi" class="js-wpv-filter-trigger-delayed form-control" placeholder="Rechercher votre type de poste par mot-clé">
</div>
--> now the placeholder is NOT changed and the field is NOT required ... but I have some other problems (eg : the entered text is not memorized in the field and pressing "search", etc.).

thanks for your help.

#2348673

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

I don't experience the same on my own test site: I suspect there is interference from another plugin or your theme, or possibly some custom code you have added.

Please disable all plugins except Toolset, make sure you are not running any custom code (disable any code snippets added in Toolset > Settings) and switch theme to twentytwentyone.

Try testing the search again. If the problem no longer appears then you should be able to determine the source of any conflict that triggers the problem by a process of elimination.

#2348675

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please try to follow the instructions shared by the Nigel with the previous replay and check if you find any plugin that sets the text search field required.

#2348829

My issue is resolved now. Thank you!