close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

validation not working

Thread began 2/02/2015 11:49 am by marsha431457 | Last modified 2/13/2015 3:26 pm by Jason Byrnes | 1378 views | 40 replies |

marsha431457

validation not working

my form is not validating, and the date field "show if" shows all the time. I went through the video AND the tutorial and did each step. Not going back to form page to show unfilled out parts, just goes to cart and has blanks where info should be.

http://bandofhonor.com/bracelets_aluminum.php
all fields except Inscription line 2 and 3 have validations attached...

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the page please so i can see the code.

Sign in to reply to this post

marsha431457

the URL is included in the message above

http://bandofhonor.com/bracelets_aluminum.php

Sign in to reply to this post

Jason ByrnesWebAssist

I need a copy of the actual page, I can't see the php code by looking at the URL. I need to see the validation code in order to have an idea why it is not running.

please attach a copy of the php page to your reply.

Sign in to reply to this post

marsha431457

Sorry.
bracelets_aluminum.php attached

Attached Files
bracelets_aluminum.php
Sign in to reply to this post

Jason ByrnesWebAssist

theres no validation server behavior on this page.

it looks like you applied the server validation behavior to the cartstatic page. the action of the add to cart form is to post to the bracelets_aluminum.php page, so the server validation server behavior needs to be applied to that page.

you will need to remove the validation show if behaviors, and recreate the server validation by adding it to the add to cart page, not the cart display page.

Sign in to reply to this post

marsha431457

the tutorial had me 1) add the messages to the form page (bracelets), then 2) add the bindings to the action page (which I understood to be the cart page), then 3) add the server validations to that page (at least it didn't say to open the form page) and 4) show validations on failure behaviors to the form page. So you are saying step 3 should have happened on the form page (bracelets)? Or is it the bindings I did wrong? I did this while watching the tutorial video but it was very hard to hear, even at full volume. This was all very confusing as she was working on a form AFTER the cart page...

It has been a month since we bought eCart6 and started on this and the natives are getting restless!

Sign in to reply to this post

Jason ByrnesWebAssist

In the tutorial you where looking at, it was a checkout page that had the action set to post to the confirm page.

rule number 1 when working with forms is:

All form Processing must happen on the action page.

in your case, the action of the form is not to post to another page, but instead it posts to itself, so the validation needs to be on the form page.

Sign in to reply to this post

marsha431457

In post #6 you said:

"it looks like you applied the server validation behavior to the cartstatic page. the action of the add to cart form is to post to the bracelets_aluminum.php page, so the server validation server behavior needs to be applied to that page.

you will need to remove the validation show if behaviors, and recreate the server validation by adding it to the add to cart page, not the cart display page."


Is there any way to EDIT this or do I have to recreate everything: ie all 4 steps that I listed above? Not sure how far back I need to go. I know I applied bindings AND configured the validations to the cart page instead of the bracelets page, so possibly I need to redo (or edit if possible) both.

I started by just selecting the "validate if" blocks and deleting them, but I can see there is still a lot of PHP code in there on each form field and i can't tell if I need to delete all that too?

Sign in to reply to this post

Jason ByrnesWebAssist

You will need to recreate it since the validation needs to be removed from the cart display page and recreated on the add to cart page.

you will also need to redo the form element bindings to the new validated entries bindings.

Sign in to reply to this post
loading

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