Contact Form reset after JSON response

1 reply · opened May 24, 2018

JjdmannMay 24, 2018

Hi,

I've built a checkout form using the contact form widget, so I can receive error messages. But when I receive an error message, the input fields on the form become blank. Is there a way to disable that feature, so users don't need to enter new information again?

Jonathan

SSemicolon WebSTAFFJun 4, 2018

Hello,

Please find the following code in the contactForm: function() Function Block:

if( data.alert != 'error' ) { $(form).clearForm(); }

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard