• Not Answered

Sitecore 9.1 Forms - Prevent multiple submits

Hi.

 

I would like to prevent multiple submits from happening, when a user submits a form, by disabling/removing the submit button.

 

I did achieve this by running a simple onclick javascript in the Button.cshtml file.

 

My problem is, that if a validation fails, i need to activate the button again, so the visitor can resubmit it.

 

Have anyone made something like this?