CGBetterForms form submission not working

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
WDJames
Forum Members
Forum Members
Posts: 85
Joined: Tue Feb 13, 2018 1:09 pm

CGBetterForms form submission not working

Post by WDJames »

Hello,

We are using CGBF (1.10.4) to display a form (Booking) which upon submission displays another form (Payment) via the form output. The idea is that the data(total costs) from the Booking form is passed through to the payment form where the user pays. The first part of the process works as expected so users can book and be directed to the payment form but the issue is that the payment form does not submit. Instead of showing the payment form thank you message, it displays the blank booking form.

Any ideas would be greatly appreciated.

Thanks,

James
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1825
Joined: Wed Feb 25, 2009 4:25 am

Re: CGBetterForms form submission not working

Post by DIGI3 »

Have you checked the php error logs, and the admin log?
Not getting the answer you need? CMSMS support options
WDJames
Forum Members
Forum Members
Posts: 85
Joined: Tue Feb 13, 2018 1:09 pm

Re: CGBetterForms form submission not working

Post by WDJames »

Hi DIGI,

I have checked the logs and there isn't anything relating to the form submission error. I should also say that the forms are being loaded inside a LISE detail page and not an actual page (I don't know if this affects it in any way).

Another way I've tried is to redirect the first form to a "thank you" page that contains the second form but the problem is that doing so we end up losing the data collected from the first form.

Any ideas?

Thanks,

James
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1825
Joined: Wed Feb 25, 2009 4:25 am

Re: CGBetterForms form submission not working

Post by DIGI3 »

I don't have any guesses as to why it wouldn't show the thank you message, unless it's set to not do that. It could be because it's in a LISE template, do you have the forms set to display inline?

To do the second form on a thank you page you'd need to capture the posted data, and apply them to hidden fields in the new form. There might be a more efficient way to do this but that's what I do.
Not getting the answer you need? CMSMS support options
WDJames
Forum Members
Forum Members
Posts: 85
Joined: Tue Feb 13, 2018 1:09 pm

Re: CGBetterForms form submission not working

Post by WDJames »

Thanks for getting back to me.

I do have both forms set to display inline. I tried to set the second form to not display inline but the issue persists. I'll try it with both forms not set to display inline.

I've tried to capture the posted data but I can't get it to work on the actual thank you page. I've also tried just having one form but I am using StripeGate to show the payment button and it doesn't dynamically change the price based on the form's selection.
Post Reply

Return to “Modules/Add-Ons”