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

Can we have a spry validation video tutorial on how to add or remove it... please?

Thread began 5/03/2013 9:38 am by mrs | Last modified 5/03/2013 11:07 am by mrs | 292 views | 2 replies

Jason ByrnesWebAssist

Originally Said By: mrs
  do I need two different pages to implement this sort of validation, or can I apply it to the same page the form is on? The data assist or form builder pages seem to have it all on the same page as the form, but I might be wrong.

Thanks  



It depends on the Form action.

The example given in that tutorial is for a form (checkout) that has the action set to POST to the confirm page.

Since the action is set to go to another page, the validation needs to be on the other page.

Rule #1 when working with forms:
All Form Processing MUST occur on the page specified by the form tags action attribute.

Always look at the form tag and determine the action of the form and method of the form.


Insert and Update Forms created by the Data Assist wizard create pages wizard will have the action set to post to itself.

These forms will also have server validation already applied. So you can go to the server behaviors panel, double click the server validation server behavior to edit it and add or remove any validations.


Spry validation is separate.

to add a spry validation field, you go to Insert -> Spry and select the type of spry element to add.

to edit the spry settings, select the form element, then click the bounding box, this triggers the spry settings in the properties panel.

spry will add a javascript block at the bottom of the page to define the spry settings for each field.

if you remove a spry element from the page, you also need to delete the corresponding line in the script for that element.

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