Auto-Run Search Views in Knack
- CH Project Support Limited Carl Holmes
- 7 days ago
- 1 min read
The below code allows you to auto run a search view in Classic Knack
//Search component to auto submit
$(document).on('knack-scene-render.scene_351', function (event, scene) {
// Wait a moment, then click search button in a search view after the scene renders.
setTimeout(function () {
$('#view_621 button[type="submit"]').click();
}, 500); // Milliseconds to wait before click.
});
Sign up to Knack for Free - Affiliate Link
Update the scene and view numbers as required.



Comments