Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

177
Visualizações
how to remove form submit message after 10 seconds automatically in the WordPress site

So I m working on a WordPress site I made a form using the formidable plugin. I want the form submitted success message automatically removes after 10 seconds. how to remove form submit message after 10 seconds automatically in the WordPress site.

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

Here is the official document of the Formidable form. https://formidableforms.com/knowledgebase/javascript-examples/javascript-after-form-submit/

You can try something below:

<script type="text/javascript">
    jQuery(document).ready(function($){
        $(".frm_message").delay(10000).fadeOut(1000); // change 5000 to number of seconds in milliseconds  
    });
</script>
about 4 years ago · Juan Pablo Isaza Relatório

0

Don't know about that plugin but a few lines of JS should do the trick.

Let's say the element that wraps your success message has a class called notice-container and the form element has the id form21

document.addEventListener('DOMContentLoaded', function () {
    let container = document.querySelector('.notice-container'),
        form = document.querySelector('#form21');

    if (form != null) {
        form.addEventListener('submit', function () {       
            setTimeout(function(){
                container = document.querySelector('.notice-container');
                if (container == null) return; // abort if element isn't available

                container.style.display = 'none';
            }, 10000);
        });
    }
});

Place this code anywhere on your page and you're good to go.

P.S: Don't forget to replace the notice-container and form21 values accordingly to your form

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda