Hi,
I wonder if anyone can assist please.
I would like a search to be initiated after a DropDown item is selected.
I have utilised this script that I found.
<script type="text/javascript">
/* Detect if a value is selected in your Dropdown and call a function, just don't forget to put the ID of your dropdown in the code below */
document.getElementByID('FieldName3').onchange = function() {myFunction()};
function myFunction() {
// submit the form if an value is selected
setTimeout('document.forms["caspioform"].submit()',1000);
}
</script>
However this is not working. It may be that I have used the incorrect getElementByID and I have struggled to determine the correct ID.
I tried two that I thought it may be, but still not working.
Is the script correct, or is it more likely that I have the incorrect ID?
Thanks