TEMA:

Breeze Form form HTML Form 1 año 1 mes antes #276613

  • Avatar de Mirec
  • Mirec
  • Fuera de línea
  • Navegador Platino
  • Navegador Platino
  • Registered
  • Mensajes: 3262
  • Gracias recibidas: 163
Hi,

what do you think about the solution, that we keep code in the end submit, it means to use the function to postpone execute function for about 5 sec, and then it will keep the "exit()" while the thank you message is shown.

let me know


regards,
Mirko

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Breeze Form form HTML Form 1 año 1 mes antes #276619

  • Autor del tema
  • tayling
  • Fuera de línea
  • Navegador Experto
  • Navegador Experto
  • Registered
  • Mensajes: 215
  • Gracias recibidas: 0
Hi Mirko
Yes that should be ok - you mean the form html dont you? Ah the form is already in the END SUBMIT so you mean the page 2 message?
Cheers

Tony

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Última Edición: Post by tayling.

Breeze Form form HTML Form 1 año 1 mes antes #276620

  • Avatar de Mirec
  • Mirec
  • Fuera de línea
  • Navegador Platino
  • Navegador Platino
  • Registered
  • Mensajes: 3262
  • Gracias recibidas: 163
Hi,

THe form is working well BUT the page two message is not complete - this is set up in form piece but is not running because of the exit; in the END SUBMIT code. If i remove the exit; the joomcrm record is not created - I need tom move things around to make it work - can you help?

I mean on the 'exit()' function in the END submit, we can postpone it and my previous code should work, and show the thank you page for about a few sec and the code in the END submit will be executed after a few sec.

you can test that solution and see how works!



regards,
Mirko

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Breeze Form form HTML Form 1 año 1 mes antes #276621

  • Autor del tema
  • tayling
  • Fuera de línea
  • Navegador Experto
  • Navegador Experto
  • Registered
  • Mensajes: 215
  • Gracias recibidas: 0
SO we use a exit() function that includes a delay instead of just exit? do you have a sample?

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Breeze Form form HTML Form 1 año 1 mes antes #276623

  • Avatar de Mirec
  • Mirec
  • Fuera de línea
  • Navegador Platino
  • Navegador Platino
  • Registered
  • Mensajes: 3262
  • Gracias recibidas: 163
Hi,

no, I mean the function 'exit' is for the exit, so we can use the function 'sleep()' for delay 'exit' and execute it again in about a few sec

www.php.net/manual/en/function.sleep.php

you can embed this function and see whether works, the function 'sleep(5)' should delay executing the function 'exit' for about 5 sec.

regards,
Mirko

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Breeze Form form HTML Form 1 año 1 mes antes #276628

  • Autor del tema
  • tayling
  • Fuera de línea
  • Navegador Experto
  • Navegador Experto
  • Registered
  • Mensajes: 215
  • Gracias recibidas: 0
OK I tried
sleep(5);
exit;

But that skips page 2 and go to home page with Notice
Successfully saved!

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Tiempo de carga de la página: 0.065 segundos

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!