Hey, I'm trying to figure out how to reset a HiddenField's value in case the AutoCompleteExtender doesn't return any results (specifically when the user searches for something that isn't on the list/database). This is the current JS code I have:
function handleAutoCompleteSelection(source, eventArgs) {
var hiddenField = document.getElementById(source.get_id() + '_hidden');
hiddenField.value = eventArgs.get_value();
}
Is there a way to modify this to check if the list is null? At the moment, it just keeps the previous value. Any suggestions would be appreciated.
Thank you!