Home Forums Front-end Issues Disable submit button on acf_form


Disable submit button on acf_form

  • I have successfully created a frontend form with acf_form. It is creating a new post for a custom post type.

    Is there a way to disable the submit button if the form is successful? My server is slower, so some people are able to submit the form multiple times (each time they click the button).

    Ideally, if the form fails validation, I would show a message next to the button. If the form passes validation and is being submitted, the button would disable and a message would appear next to the button.

  • Hello,

    I know this is an older post, but I’m also looking for a way to disable the submit button on the frontend form. Did you ever find a solution?

    I have the following script which disables the button, but I’m not sure how to re-enable it if validation fails:

    $('.acf-form input:submit').click(function(){
    $('.acf-form input:submit').attr("disabled", true);

    Any help would be much appreciated.

  • Anybody find a solution to this?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.