Hi,
I realise literally hundreds of people asked for custom fields to behave exctly as they currently do when using the 'Create another' option in the create issue dialog window (the values persist), but ironically I have a customer who wants to clear the current selections when they click the 'Create' button on the bottom right of the window.
I've been trying to do this with JavaScript, but it does not work using the 'onsubmit' function. I have tested the basic code by temporarily using onclick, and it does clear the custom field. Obviously that's a bit useless as I want the selections submitted the first time... Here is what I have so far - any suggestions ?
<script type="text/javascript">
target = document.getElementById("customfield_10500");
function clear()
{
target.value = "";
}
var create = document.getElementById("create-issue-submit");
create.onclick=clear; // I need something like send my CF values now, and then onsubmit complete =clear
</script>