close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Using CSS Form Builder validation tools with ecart

Thread began 5/17/2011 1:11 pm by admin140217 | Last modified 5/19/2011 7:26 am by Jason Byrnes | 2366 views | 6 replies |

admin140217

Using CSS Form Builder validation tools with ecart

I have a registration form I have build with some great help from Jason Byrnes in some trouble I had but now have a question of validating the ecart generated checkout form.

All information from the current form in the checkout page is writing to the database

Can I use either client side or server side validation on the form without bringing the form into form builder?

I do have some custom fields including a multi select box, if I have to bring the current form into form builder, is it going to modify any of the fields rendering it useless?

If I do bring it into form builder, what is the best way to handle it, meaning what selections would I need to make in form builder to make sure the validation is written and not mess with the form fields.

Sign in to reply to this post

Jason ByrnesWebAssist

you you can add validation without running form builder.

Go to Webassist -> Forms -> Validation -> Serve validation to add the validation server behavior.


The checkout page ussually post to the confirm page, so the validation needs to be applied to the confirm page.

Before applying the validation, go to the bindings panle on the confirm page, clic kthe plus button and select Form Data, click the folder icon and select the checkout page, this will add dynamic data bindings for the checkout form to the confirm page.

Sign in to reply to this post

admin140217

I've done exactly as you have outlined and the form isn't validating. I intentionally left fields blank and but it processed anyway with no error.

Shouldn't there be a validation message if a designated field is required?

Thanks

Sign in to reply to this post

admin140217

Sorry about that, although there is no validation message, I did forget to assign the failure redirect.

Question:

I noticed that even if the form does not validate, everything still writes to the database. Jason if you remember the confirm page has the data set to store on post from the checkout page in my form.

So should I be validating the checkout page in the checkout page?

How would I prevent the data from writing to the database if the form is not validating?

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

please send a copy of your pages so I can see the code.

Sign in to reply to this post

admin140217

Jason, sorry I'm late replying back, I had a web emergency on one of my sites. Here are the files you asked for.

Attached Files
ahd_registration.zip
checkout.zip
confirm.zip
shopping_cart.zip
Sign in to reply to this post

Jason ByrnesWebAssist

on the confirm page, change line 24:
if (isset($_POST["Submit_order"])) {

to:
if (isset($_POST["Checkout"])) {




Submit_order is the name of the submit button on the confirm page, Checkout is the name of the button on the checkout page, you want the server validations to occur when the checkout page submits to the confirm page, so the trigger must use the submit button freom the checkout page, not the submit button from the confirm page.

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...