• Resolved palooka65

    (@palooka65)


    Great job with the table. I have a 5-column table and want to disable one column from being searched. I want it to be used just for information.
    How can I do this?
    Thanks so much.
    Chet

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    For this, please add this to the “Custom Commands” text field on the table’s “Edit” screen:

    "columnDefs": [ { "searchable": false, "targets": [ 0, 3 ] } ]
    

    This would turn off the search function for columns 1 and 4 (counting starts with 0), so just change that as desired.

    Regards,
    Tobias

    Thread Starter palooka65

    (@palooka65)

    As usual, thank you for the quick response.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable search field for a column’ is closed to new replies.