How to hide the standard Search button

Hello there!

Quick question…

Is there any way to hide the standard ‘Search’ and ‘Reset’ buttons from a view?
Screen Shot 2022-07-26 at 12.15.01 PM

Thanks =)

This will hide the Search and Reset buttons in a Search view.

.kn-search .kn-submit {
  display: none;
}

This will hide them in a Table view:

.table-keyword-search {
  display: none;
}

Great! …how do I only apply it to a specific view?

I tried this:

$(document).on(‘knack-scene-render.scene_73’, function(event, scene) {
$(‘#kn-app-menu’).hide()
.kn-search .kn-submit {
display: none;}
});

But that didn’t work. ;(

Ah… you were providing a CSS solution… and I was thinking javascript!

Ok… that worked!

Thanks! =)

1 Like

To apply it to a specific view:

#view_25 .kn-search .kn-submit {
  display: none;
}

or to a specific scene:

#kn-scene_9 .kn-search .kn-submit {
  display: none;
}

:+1:

1 Like