Changing Placeholder For Connection Values

For anyone looking to change the placeholder text for connection dropdown values, use the below code:

$(document).on(‘knack-view-render.view_xxx’, function(event, view) {
let selectSpan = document.querySelector(‘#view_xxx_field_xxx_chzn a.chzn-single span’);
if (selectSpan) {
selectSpan.textContent = ‘Type to search’;
}
});

3 Likes