I would like to be able to change the value ( or clear the user selection) of a searchable dropdown based on another field value. I can't seem to get the searchable dropdown to change using .selectedIndex
$(document).on('knack-view-render.view_6', function(event, scene) {
$('#view_6-field_227').focusout(function() {
var driveType = $('#view_6-field_227').val();
if (driveType.includes("Yes")) {
$('#view_6_field_217_chzn').selectedIndex = "0";
}
});
});
Any thoughts?