The previous() method just gives you the last URL. On the first load this is obviously the page the user came from but after you've submitted your form this is the previous "form page" (because a request happened in between).
I'd say you have to put a real url on the cancel button. Are there multiple pages from which you can access your form?
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us