1. galbur
  2. General
  3. Monday, September 06 2021, 11:07 AM
Hi

Is there no way to reset a search with the Easy Profile Search Module?
A reset Button?

Thank you
Best regards
Christoph
admin Accepted Answer
Admin
Hi,
you can it with template override feature:
- Go to Extensions->Templates->Templates
- Choose your theme
- Go to tab "Create Override"
- Choose the module theme "mod_jsnsearch"
- From "Editor" tab choose following path html->mod_jsnsearch->default.php
- Add the reset button at line 100 like
<input type="reset" class="btn btn-danger" value="Reset" />
  1. more than a month ago
  2. General
  3. # 1
galbur Accepted Answer
Hi

I come back with this question.
Until now i used the Ajax-Version of the JSN Search Module.
A lot of customers had problem with Ajax. Because they used the Enter Key.
So i disabled Ajax and i used your instructions to insert a reset Button.
I can see the Button but it doesn't work.

Because it doesn't work, I set the reset button to display none.

Thank you
Best regards
Christoph
References
  1. https://forumenergie.ch/energieberatung
  1. more than a month ago
  2. General
  3. # 3
admin Accepted Answer
Admin
Hi,
in your case instead a reset button you can add a link do same page without search variables, so something like
<a class="btn btn-danger" href="/energieberatung" style="order: 100;margin-top: 10px;align-self: baseline;">Suche zurücksetzen</a>
  1. more than a month ago
  2. General
  3. # 4
galbur Accepted Answer
Hi

Thank you! This works perfect.

Best regards
Christoph
  1. more than a month ago
  2. General
  3. # 5
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.