Hello there!
Quick question…
Is there any way to hide the standard ‘Search’ and ‘Reset’ buttons from a view?
Thanks =)
Hello there!
Quick question…
Is there any way to hide the standard ‘Search’ and ‘Reset’ buttons from a view?
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! =)
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;
}