• Resolved alocin-deu

    (@alocin-deu)


    Hi,

    question, i would like to insert a reset filter button.

    I insert this code:

    <button onclick=”document.getElementById(‘event_filters’).reset = ””>Reset</button>

    before </form> in event-filters.php in ‘child way’

    i have 4 field in the search filter:

    keyword (text field)
    Location ( text field )
    Category ( multiple choose )
    Time ( multiple choose )

    this code i have inserted just reset Category and Time

    But keyword and location, NO.
    Any solution to have a complete reset filter button?

    thans a lot as always
    Nicola

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @alocin-deu,

    Your site is restricted so i can’t check. Do you want to add custom reset link or you want to use existing reset functionality ?

    Plugin has default reset button wich will clear whole filter form.

    Thank you

    Thread Starter alocin-deu

    (@alocin-deu)

    Thanks man, i solved using some other trick and it is ok ??

    imarked like reslved for this.

    sorry
    regards
    nicola

    Hi @alocin-deu,

    If you can provide your trick details here so it will help other user to fix easily.

    Thank you.

    Thread Starter alocin-deu

    (@alocin-deu)

    hi, yes of course.

    Reset button in file event-filter.php in ‘child mode’

    this one just reset multiple field, text field: NO.
    <button onclick=”document.getElementById(‘event_filters’).reset = ””>Reset</button>

    so i just insert a button with redirection to the home event:

    <INPUT Type=”button” Value=”Reset” Onclick=”window.location.href=’https://marketplacemtd-uat.azurewebsites.net/event'”&gt;

    nicola

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Reset filter’ is closed to new replies.