Skip Navigation

[Resolved] Load Popup After Submit

This thread is resolved. Here is a description of the problem and solution.

Problem:

How to customize the message after user submit post form?

Solution:

You can try with the option "After visitors submit this form: Display a message instead of the form..."

Relevant Documentation:

This support ticket is created 2 years, 9 months ago. 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 6 replies, has 2 voices.

Last updated by simchaH 2 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#2329807

Hi,

I am trying to figure out if there is a simple way to load an Elementor popup after a user submits a CRED form? My goal is to simply make a sequential step by step process to filling out 3 forms. They are 3 forms because they are 3 separate custom post types. So, once someone submits CPT A form, I created an Elementor Popup saying "Would you like to add CPT B?" With Yes/No buttons in the popup. Same thing once that is completed, I have another popup that says "Would you like to add CPT C?" and I want to have that display after CPT B form is submitted.

If there is a more simple step-by-step process I can offer users, I'm also open to alternative option?
Thank You!
Sim

#2329843

Hello,

There isn't such kind of built-in feature within Toolset Forms plugin, as a workaround, you can try with the option "After visitors submit this form: Display a message instead of the form..."

In above message content, display the page links for creating other "CPT B" and "CPT C" posts

#2329859

Okay thanks I'll do that. Is there a way to keep the forms CPT B and C hidden until the user selects the "Yes" option when the message displays, which has an anchor tag to the direct link of the form? This way it will make it more iterative, because they will only see one form at a time

Thanks!

#2329913

You don't need to display those three post forms in same page, you can put them in three different pages, so each form won't display until user click the link, and redirect to the specific page.

#2330547

Okay so I'm going to do that. I have one more question: Is there any way to auto-fill the CPT A field relationship when CPT B page displays? Since I know a user is only inputting successive connecting posts, I don't need them to fill in the info they just filled out in the previous form, rather just have it automatically stored/set in the field (and possibly hidden altogether).

Thank You!

#2330599

You can use Forms filter hook "cred_success_redirect" to pass the new "CPT A" post ID as URL parameter to "CPT B" page:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_success_redirect

In the "CPT B" post form, use above URL parameter to setup the default value of "CPT A" relationship field.

#2333077

My issue is resolved now. Thank you!