hello forum,
I have trouble clearing the form (multistep form) when page loads...I have 5 steps in this form:
I used simple javascript, no idea why it is not working. Perhaps there is a Couch code for that?
Just to clarify, I do not think of reset fields, but of really clear all the values in the form, if a user decides to leave the form before finishing it, and than comes back to start again with the form....
thanks in advance
Tanja
I have trouble clearing the form (multistep form) when page loads...I have 5 steps in this form:
I used simple javascript, no idea why it is not working. Perhaps there is a Couch code for that?
- Code: Select all
<script type="text/javascript" language="javascript">
function ClearForm(){
document.myform.reset();
}
</script>
......
<body onload="ClearForm()">
<cms:form anchor='0' method='post' class='kform2' name='myform' >
....
</cms:form>
Just to clarify, I do not think of reset fields, but of really clear all the values in the form, if a user decides to leave the form before finishing it, and than comes back to start again with the form....
thanks in advance
Tanja