• Resolved LIJE

    (@lije)


    Hi,

    I’ve a huge list in tablepress.
    I’m using a input to search elements in the table.
    When no elements are found, i would like to run some js in order to show a form that was previously hidden.
    Basically, this is when the message “No matching records found” shows up.

    Thanks.

    https://www.ads-software.com/plugins/tablepress/

Viewing 1 replies (of 1 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    For this you will need custom JavaScript code, which uses the API functions of the DataTables JavaScript library. The “search” event (see https://datatables.net/reference/event/search ) might be helpful for that.
    Unfortunately, I have never used these myself, so I’m not able to help with details ??

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘Run JS when no matching records found’ is closed to new replies.