How to use input from the search filter as the name for csv download file

How to use input from the search filter as the name for csv download file

rasikah12rasikah12 Posts: 4Questions: 2Answers: 0

I want to download the datatable in csv/excel format but the name of the file should be coming from the search filter. I tried to search into lot of articles but couldn't find anything. Can anybody please suggest me a way as how I can do it? I am new to JS and trying to build the code but couldn't build anything yet.

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 12,939Questions: 0Answers: 2,204
    Answer ✓

    This example shows how to change the filename (use filename). To get the value from the search filter, you can use search(),

    Colin

  • rasikah12rasikah12 Posts: 4Questions: 2Answers: 0

    Thank you Colin! It helped!

Sign In or Register to comment.