I disagree "every such form should have cancel button". Yes, perhaps full e-commerce applications have "cancel" and "continue shopping" buttons/links but Gravity Forms isn't intended to work like a full shopping cart.
If all you want to do is return someone to the previous page, you can use an HTML field to create a button, link it to wherever you want it to go and then use CSS to position it wherever you like. It should be relatively easy to achieve. An example is below.
Added this to a HTML block ( at the very end of my form ) and checked the option to "disable default margins"
<input type="button" value="Cancel and Return to Google" class="cancelbutton button" onClick="window.location.href='http://www.google.com'">
Then I quickly added a custom CSS rule to position the button.
and that's all there is to it.
Posted 12 years ago on Friday October 14, 2011 | Permalink