Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
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?

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
This I think can only be done with PHP. You need to clear the visitor's session data stored on the server. I'm not familiar with the multi-step code, so I'll have to defer to someone else on the solution.
Thanks for clarifying that cheesypoof!

I hope Kamran will have time to look at that issue, perhaps make a couch solution for that?....


best regards

Tanja
Hi Tanja,

Sorry for the delay but don't worry I'll try and get something done about this. As cheesypoof said, it'll have to be tackled with PHP.
I'm terribly tied up right now trying to push Couch v1.3.5 out the doors but, rest assured, I'll get this done as soon as I get a little breather.

Thanks.
4 posts Page 1 of 1