close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Form with summarize and accept the terms

Thread began 1/22/2013 2:21 pm by Jonas | Last modified 1/25/2013 9:16 am by Jason Byrnes | 1989 views | 7 replies |

Jonas

Form with summarize and accept the terms

I've made a form where the visitor should order tickets to a show and associated food packages.

The show will be shown three different days. Each day is a separate filedset, in the form.

Fieldset 1: The visitor asked first to fill in the traditional personal information.

Fieldset 2-4: Then there are three dates that the visitor can choose from. For each date, you can select the number of tickets to the show and the number of food packages. Of course you can order tickets for more than one day.

Fieldset 5: Then the visitor can choose the number of gold card.

Fieldset 6: Final field set contains a textarea.

So far there is no problem to create the form from the CSS Form Builder with authentication and everything.

But I want the visitor to have a summary of what it would cost. Either if the form can automatically summarize after the visitor selects number of tickets and food packages. Or if the visitor must click a button summarize.

In addition, the visitor must accept the terms.

When the visitor finally press the Order, the form is verify if you have summarized and accepted the terms, and filled in the personal details correctly.

The last part I do not know how to solve. Would of course like to be able to do this also from within CSS Form Builder.

Sign in to reply to this post

Jason ByrnesWebAssist

dont use form builder for this.

use eCart to allow them to add the tickets and food packages to shopping cart, then checkout.

on the checkout, you can add any additional fields.


form builder s not the tool for calculating totals based on items the user wants to purchase. that is a function of eCart.

Sign in to reply to this post

Jonas

I understand that eCard is the best tool to do this in. Unfortunately I have not worked in the eCard yet. Furthermore, it seems nonetheless not as eCard really can do what I'm after.

I want the form to look like the pictures I sent in the first post.

I still think that one accept the terms feature should be standard in CSS Form Builder.

I've found a script that does what I'm looking for regarding calculation of the sum. This script also makes sure to double-check that the visitor has summarized. Otherwise, they see a dialog box. The problem is that this script appears to block CSS Form Builders validation.

The form is on the following page: operaform2013_SE2.php

Grateful for help!

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the page please

Sign in to reply to this post

Jonas

Copy of page

Here is the page. U can also go to the link as I wrote in the last post.
Thanks for help!

Attached Files
operaform2013_SE2.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

trychanging the trigger for the validation:

php:
if (isset($_POST["Opera_01_submit"]))  {



to any form post:

php:
if($_SERVER["REQUEST_METHOD"] == "POST") {




also in the server validation behavior, add a required validation for the checkbox.


for the checkbox, instead of using a session value:
<input name="Villkor_godkant" type="checkbox" id="Villkor_godkant" value="<?php echo $_SESSION['Villkor_godkant_opera']; ?>" />


use a hard coded value like 1:
<input name="Villkor_godkant" type="checkbox" id="Villkor_godkant" value="1" />

Sign in to reply to this post

Jonas

Still error

Unfortunately, it still does not work validation. I do not know what I will do. The form is sent after the sum is correct completed. But just before it is sent, I see the errors that validation shows. But still it will be sent the form.

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...