skip to Main Content

We might be perfect for each other.

Are you interested in working with us? We would love to be your digital partner. The best way to get in touch with us is to complete the form below.

Add cancel button to WP-Types CRED form

Add Cancel Button To CRED Form

There isn’t a cancel button by default placed into the CRED forms html, but you can add a cancel button to your WP-Types CRED form easily by using this small snippet.

< input onclick="history.back()" type="button" name="Cancel" value="Cancel" / >

Place is just before or after the submit button. That snippet will look something like this:

[cred_field field="form_submit" value="Submit" urlparam=""]

So the final snippet for the submit and cancel buttons will look a little like this:

[cred_field field="form_submit" value="Submit" urlparam=""] < input onclick="history.back()" type="button" name="Cancel" value="Cancel" / >

Add cancel button to CRED form