Forums

chronoforms v5 - submit button disable

woodsywoods 22 Aug, 2018
I'm trying to make my button disable but when I use the method described here... But my contact page won't load at all, giving me a 500 error.

Firstly, I've placed a Load Javascript above the HTML Render - and here I've placed my function.
function disableSubmit(){
$('submitButton').disabled = true;
$('submitButton').value = 'Processing . . .';
};

Then I did the following as described...

Add a Custom code action to your form OnLoad event and put this code into it*:

<?php
$form->form_params->set('jsvalidation_onValidateSuccess', 'showLoader');
?>


Is there a different method in Chronoforms v5 that I should be using?

Appreciate the assistance everyone.
This topic is locked and no more replies can be posted.