Skip Navigation

[Resolved] Ajax for CRED Registration Form is not working in Popup

This support ticket is created 5 years, 2 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.

Our next available supporter will start replying to tickets in about 2.42 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 3 replies, has 2 voices.

Last updated by tobiasW-2 5 years, 2 months ago.

Assisted by: Christian Cox.

Author
Posts
#1332307

Hi,

I am trying to:
Place an registration form into an Elementor Popup and use AJAX.

Link to a page where the issue can be seen:
hidden link
Password: passwort
Click on: Hier Klicken->Tab Register->Einsenden with blank form
After these steps the form will forward you to the actual page..

I expected to see:
If i place the form directly on the page, it works and give me the output that some data is wrong without reloading the page or replace the form with a message.
But in the popup i think the Form is not correctly initialized because Elementor loads the HTML for the Popup by click on open dynamically . How can i init the form manually?

Instead, I got:
Forward to actual page

If i try to trigger the ready event manually nothing happens:
jQuery(document).trigger('cred_form_ready', {
form_id: "cred_user_form_4353_1"
});

#1332829

Hi, unfortunately there is no JavaScript API for Forms, and our system expects Forms to be included in the content via shortcode or PHP when the page is rendered. It would be best to use a modal or popup system that includes the Form hidden in the page contents initially, then shows it in a modal on-demand. Bootstrap, for example, has a modal element like this: https://getbootstrap.com/docs/4.3/components/modal/

Otherwise, the JavaScript functionality for an AJAX form can't be initialized with any public APIs.

#1332831

Hi, unfortunately there is no JavaScript API for Forms, and our system expects Forms to be included in the content via shortcode or PHP when the page is rendered. It would be best to use a modal or popup system that includes the Form hidden in the page contents initially, then shows it in a modal on-demand. Bootstrap, for example, has a modal element like this: https://getbootstrap.com/docs/4.3/components/modal/

Otherwise, the JavaScript functionality for an AJAX form can't be initialized with any public APIs.

#1334855

I have built an "popup" with bootstrap.

My issue is resolved now. Thank you!