i2-Services, Inc. Forums

Full Version: Skipping Preview
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi again, Jason

This client is getting tiresome.
Now what he wants is - a mini form where someone just clicks a checkbox to agree to the terms & conditions and is then moved directly to a page which includes a paypal button. The page with the paypal button can only be reached if the user agrees to the Terms and conditions by clicking in the box.

For me, this would mean that the "next" button has to redirect to that page, rather than going via the preview and thank you pages.

How do I do that?

Thanks for your help, as usual

David
Hi David,

First you should create a unique template (duplicate an exisiting on in /interface/. When creating or
if you already created the new form entry choose [edit] & select the new template.

You can create the checkbox field for page #1.

Then create a "spacer" field for page #2.

Within the template you'll need to place some code such as:

{if $pg == "2"}
put your html here / paypal button
{/if}

Just above where the code loop for the fields starts.

When you get to page #2 it will show what you entered there.

Probably will want to strip off the previous button.

I can get you a mod to not display the next button on that page.

That should start you in the right direction.
Hi Jason
Thanks.
I've made a start,and it looks OK. What I need is the mod you mentioned. Maybe by email.

Thanks again
Regards
David
Hi Jason
Thanks for sending the Mod so promptly.

It was the final piece in the puzzle. My client finally realised, that if his visitors only had the choice of pressing the "next button" to agree to terms and conditions, or nothing then that would be enough. The problem then remained, that on the next page where the paypal button was, the "next button" - which normally leads to the "thank you" page - would have to disappear, leaving only the option to pay or abandon. This is a great solution, which I would not have been able to implement otherwise.

Thanks Jason
Reference URL's