Passer la navigation

[Résolu] Show a custom message when a CRED form submission in progress

This support ticket is created Il y a 3 années et 6 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Minesh Il y a 3 années et 6 mois.

Assisté par: Minesh.

Auteur
Publications
#2260573

I have a form that shows up on a popup. I am running a resource-intensive query on this form's CRED form's cred_save_data hook. This query takes around 2 minutes to complete.

I am using AJAX to run the query and would like to show a message to the user during the processing time. Something like ... "You request is being processed. This might take up to 2 minutes. You can either wait or close this popup to continue your work.".

How can this be achieved?

#2260887

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

As you already know that there is no such feature available and you can always submit a feature request for such feature that to display some message after you submit the form.
=> https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

However, the workaround in your case would be you should add a div with your message and hide it by default using CSS and then add related jQuery/Javascript code and show the div when user click on the form's submit button.

Here is example that may help you: lien caché