Creating and validating forms with Spry Validation

Similar documents
Microsoft Expression Web

Dreamweaver Tutorials Creating a Web Contact Form

ITP 101 Project 3 - Dreamweaver

understand how image maps can enhance a design and make a site more interactive know how to create an image map easily with Dreamweaver

Adobe Dreamweaver CC 14 Tutorial

Tutorial 8: Quick Form Button

Using Adobe Dreamweaver CS4 (10.0)

FORMS. Introduction. Form Basics

Site Maintenance. Table of Contents

Recreate your Newsletter Content and Layout within Informz (Workshop) Monica Capogna and Dan Reade. Exercise: Creating two types of Story Layouts

HOW TO CREATE AN HTML5 JEOPARDY- STYLE GAME IN CAPTIVATE

Inserting the Form Field In Dreamweaver 4, open a new or existing page. From the Insert menu choose Form.

Basic tutorial for Dreamweaver CS5

Using Spry Widgets. In This Chapter

Dreamweaver Mail Forms: Using ritmail.cgi

Creating a Newsletter with Microsoft Word

Microsoft Word 2011: Create a Table of Contents

... Asbru Web Content Management System. Getting Started. Easily & Inexpensively Create, Publish & Manage Your Websites

Chapter 14: Links. Types of Links. 1 Chapter 14: Links

USER GUIDE. Unit 2: Synergy. Chapter 2: Using Schoolwires Synergy

Marketing Checklist

Upload Center Forms. Contents. Defining Forms 2. Form Options 5. Applying Forms 6. Processing The Data 6. Maxum Development Corp.

Making a Website with Hoolahoop

DREAMWEAVER BASICS. A guide to updating Faculty websites Created by the Advancement & Marketing Unit

We automatically generate the HTML for this as seen below. Provide the above components for the teaser.txt file.

Introduction to Macromedia Dreamweaver MX

ADOBE DREAMWEAVER CS3 TUTORIAL

Instructions for Formatting APA Style Papers in Microsoft Word 2010

Intellect Platform - Tables and Templates Basic Document Management System - A101

Bulk Upload Tool (Beta) - Quick Start Guide 1. Facebook Ads. Bulk Upload Quick Start Guide

Virtual Exhibit 5.0 requires that you have PastPerfect version 5.0 or higher with the MultiMedia and Virtual Exhibit Upgrades.

Designing and Implementing Forms 34

ADOBE ACROBAT 7.0 CREATING FORMS

Super Resellers // Getting Started Guide. Getting Started Guide. Super Resellers. AKJZNAzsqknsxxkjnsjx Getting Started Guide Page 1

How to Edit Your Website

Creating Interactive PDF Forms

RIT Message Center Compose and Send Messages

Wellesley College Alumnae Association. Volunteer Instructions for Template

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. Web Design in Nvu Workbook 1

Table of Contents. What is ProSite? What is Behance? How do ProSite & Behance work together? Get Started in 6 Easy Steps.

Introduction to ProForm Rapid elearning Studio. What is ProForm? The ProForm Course Authoring Tool allows you to quickly create

How To Write A Cq5 Authoring Manual On An Ubuntu Cq (Windows) (Windows 5) (Mac) (Apple) (Amd) (Powerbook) (Html) (Web) (Font

Using an external style sheet with Dreamweaver (CS6)

DOING MORE WITH WORD: MICROSOFT OFFICE 2010

Dreamweaver and Fireworks MX Integration Brian Hogan

Google Sites: Site Creation and Home Page Design

BID2WIN Workshop. Advanced Report Writing

General Electric Foundation Computer Center. FrontPage 2003: The Basics

How to create pop-up menus

Using JCPS Online for Websites

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

Excel 2003 A Beginners Guide

Shasta College SharePoint Tutorial. Create an HTML Form

Sage Accountants Business Cloud EasyEditor Quick Start Guide

How to create an template

How to Build a SharePoint Website

-SoftChalk LessonBuilder-

Application Note. Building a Website Using Dreamweaver without Programming. Nan Xia. MSU ECE 480 Team 5

Creating Acrobat Forms Acrobat 9 Professional

7 th Annual LiveText Collaboration Conference. Advanced Document Authoring

Texas Woman s University RedDot Webspinner s Manual Revised 7/23/2015. webteam@twu.edu

GOOGLE DOCS APPLICATION WORK WITH GOOGLE DOCUMENTS

HTML Form Widgets. Review: HTML Forms. Review: CGI Programs

February 2013 Copyright 2013 by CTB McGraw-Hill Education. 1

Personal Portfolios on Blackboard

Once you have gone through this document you will have a form that, when completed, will create an Account & Contact in Oracle.

Chapter 15: Forms. User Guide. 1 P a g e

MailChimp Instruction Manual

Using an Access Database

One of the fundamental kinds of Web sites that SharePoint 2010 allows

SPHOL326: Designing a SharePoint 2013 Site. Hands-On Lab. Lab Manual

PASTPERFECT-ONLINE DESIGN GUIDE

Working with the Ektron Content Management System

Microsoft FrontPage 2003

Create a Web Page with Dreamweaver

Form Builder Manual. A brief overview of your website s Form Builder with screenshots.

Dreamweaver Tutorial #1

Kentico CMS User s Guide 5.0

Create a Simple Website. Intel Easy Steps Intel Corporation All rights reserved.

Getting Started with KompoZer

Event Management Do-It-Yourself User Guide

UCL INFORMATION SERVICES DIVISION INFORMATION SYSTEMS. Silva. Introduction to Silva. Document No. IS-130

PDF Web Form. Projects 1

SmartBar for MS CRM 2013

MAIL MERGE MADE EASY A STEP-BY-STEP GUIDE FOR LABELS OR MERGES

03_Events Trainingv3 1

Excel 2007 A Beginners Guide

USER GUIDE. Unit 4: Schoolwires Editor. Chapter 1: Editor

Mail Chimp Basics. Glossary

Cascade Server CMS Quick Start Guide

Dreamweaver CS6 Basics

Web Design and Development ACS Chapter 13. Using Forms 11/30/2015 1

Web Portal User Guide. Version 6.0

How to install and use the File Sharing Outlook Plugin

Further web design: HTML forms

The Smart Forms Web Part allows you to quickly add new forms to SharePoint pages, here s how:

Microsoft Expression Web Quickstart Guide

Introduction to Microsoft Word 2003

Create a GAME PERFORMANCE Portfolio with Microsoft Word

MICROSOFT OUTLOOK 2010 WORK WITH CONTACTS

Transcription:

Creating and validating forms with Spry Validation 1. Create a new html page: File->New, then: a. Blank Page, Html, and 1 column fixed, centered, header and footer b. DocType: XHTML 1.0 Strict c. Layout CSS: Create New File 2. Create, then Save 3. Feel free to add color and style 4. Change the word Header to Customer Feedback 5. Highlight and change the words Main Content to Complaint Form 6. You may wish to make the font for Complain Form slightly smaller. 7. Highlight the content and hit backspace to clear it. 8. You should have something that looks like this: 9. Give your file a title. Pick something you wish to complain about. I picked chocolate, although there is almost never anything to complain about when it comes to chocolate. 10. Save your file as Complaints.html

Create a Jump Form 11. Click under Complaint Form 12. Add the line: More information about your complaint topic and push return 13. Choose Insert->Form->Jump Menu 14. Next to Text: select Item 1 and change it to an item related to your topic 15. Next to When Selected, go to URL: enter a URL of a Web site that tells you about the item you entered in step 14. 16. Add a second menu item by hitting the + sign 17. Change the item to another item related to your topic 18. Add another URL that tells more about the item entered in step 17. 19. Add a 3 rd item, change the item, and add an appropriate URL. You should have something that looks a bit like this: 20. Hit OK 21. Preview in browser (File->Preview In Browser) Now let s create a form. 1. Below the jump menu you created, click in the design editing window 2. Enter Please give us feedback!, and give this an h2 tag

3. Underneath, choose from the top menu bar Insert->Form->Form a. You should see a dashed red box., and below, in the PROPERTIES window, you ll see the Form ID form 1. That s the unique ID being given to this form. You can change the form s ID if you want (no spaces in the name). b. It is VERY IMPORTANT that when you add elements to your form, you add them INSIDE this red box. Anything added outside the red box is being added outside the form, and thus will serve no purpose. Forms are notorious for being difficult for people with visual difficulties. However, being the progressive-minded people that we are, we re going to do our best to make our site accessible. 4. To activate accessibleity options in forms, choose Edit->Preferences (Windows) or (Mac) (depending on what you re on) and then select under the Category column on the left, Accessibility. 5. Make sure Form objects is selected under Show Attributes when inserting: 6. Hit Ok 7. Now Dreamweaver will prompt you with the Input Tag Accessibility Attributes dialog box when you insert a form field into a form. With these options set, people can fill out forms without using a mouse.

Adding a Text Field: 8. Make sure the curser is inside the red dashed line that defines the form a. To make absolutely sure you re inside the form, click on the <>Code button above the design window b. Make sure your cursor is between the opening <form id = > tag and the closing </form> tag. c. Now click back on the Design button to see the design. 9. Choose Insert->Form->Text Field 10. You ll be prompted with the Input Tag Accessibility Attributes box. This is for accessibility purposes a. Enter a Label: First Name (since our box will hold the customer s first name). b. The Style and Position radio buttons can be used to style and position the tag c. Below, there s a field to enter an Access Key. Enter a key that can be used to select that field (as opposed to clicking on it with a mouse). I m entering F for first name. d. There s also a Tab Index field. This specifies the order in which the Tab key takes the user to the different form fields. Since this is the first name, I m entering 1. e. The results should look like this:

f. Hit OK 11. Repeat Steps 9 and 10 to enter another text field for Last Name. Make the Label be Last Name, the Access Key be L and the Tab Index be 2 12. I want this field to be wider than first name: a. In the properties menu, enter a Char Width of 30 b. Enter a Max Chars of 40 (that s the maximum number of characters a user can enter into this field c. Make sure in the Type option you have Single Line chosen d. If you want the data the user types in to appear as asterisks (in other words, hidden), choose the Password option. e. I don t have an initial last name val, but if I did, I d place it in the Init Val field f. My screen should look like this: (If it doesn t, make sure you click on the text field next to Last Name in the Design editing window. You may have to click more than once) 13. Add a Menu: a. Below the Last Name Text Field, but inside the form, place your cursor b. Choose Insert->Form->List/Menu c. In the Input tag Accessibility Attribute box, next to Label: add State. The Access Key should be S and the Tab Index should be 3. Hit OK d. To add list items for the Menu, click the List Values button in the Properties Box (If not visible, click on the menu box you just created in the Design editing window:

e. The List Values popup box should appear. Add an Item by clicking the + sign. f. Type in Delaware in the Item Label column, and DE in the Value Column g. Add another item by clicking the + sign h. Type in Pennsylvania in the Item Label column, and PA in the Value Column i. Add another item by clicking the + sign j. Type in Maryland in the Item Label column, and MD in the Value Column k. Add another item by clicking the + sign l. Type in New Jersey in the Item Label column, and NJ in the Value Column m. That s enough states. Click on OK n. To set the default value to Maryland, click on Maryland next to Initially Selected o. Make sure next to type, Menu is selected. 2. Adding a Checkbox: a. Make sure your cursor is inside the form b. Choose Insert->Form->Checkbox c. In the Input Tag Accessibility PopUp box, add a label (I went with Can we Contact you? ), an Access key letter, and a Tab Index d. Hit Ok e. Under Properties, next to Checked Value, add Yes. f. Make the Initial State be Checked (using the radio buttons next to Initial State) 14. Adding a List Menu a. This is awfully similar to a Menu (inserted above to select a state). The difference between a List Menu and a Menu is that with a List Menu, you can select more than one item in the list. With a Menu, however, you can only select one item in the list. b. Below the Checkbox, but still in the form, place your cursor c. Choose Insert->Form->List/Menu d. In the Input tag Accessibility Attribute box, next to Label: add Item(s) Purchased. Add an Access Key and a Tab Index. Hit OK e. To add list items for the Menu, click the List Values button in the Properties Box (If not visible, click on the menu box you just created in the Design editing window: f. The List Values popup box should appear. Add an Item by clicking the + sign. g. I made my form on Chocolate, so I added 4 items to my list: Item Labels Dark Chocolate, Milk Chocolate, White Chocolate, and Mixed Chocolate, and Values: DC,MC,WC, and MXC respectively. h. Make sure next to type, List is selected.

15. Adding a Radio Button a. Place your cursor inside the form below the Checkbox b. Add the text, How happy were you with your purchasing experience? c. Below that add a Radio button d. Choose Insert->Form->Radio Group. You should see something like this: e. Next to Name: Enter Customer_Satisfaction (This is for you it doesn t show up in your form) f. In the Radio Buttons area, click the Label column. In the first row, enter a label that will appear in your form. I put Happy. g. Next to the Label, in the value column, enter a value that will be used behind the scenes by the form. I put Hap h. In the second row under label, highlight the Radio label and change it to Neutral. Change the Value column to Neut. i. Add a third Radio Button by clicking on the + sign above the Label Column j. In the third row under label, highlight the Radio label and change it to Unhappy. Change the Value column to Un. k. Hit Ok

16. Adding a Text Area a. Choose Insert->Form->Textarea b. In the Input Tag Accessibility Attributes box, enter a Label: Additional Comments. c. Add an Access Key and a Tab Index. d. Hit OK e. To change the size of the comment box, set the Char Width to 70 f. Change Num Lines to 6 g. Make sure Multi line radio button is selected. h. Add inside Init val, Please enter comments on your purchasing experience. 2. Adding a Submit Button a. under the text area, but still inside the form, choose Insert->Form->Button b. Add Accessibility Tags. Label the button Submit c. In the Properties window, select next to Action Submit form i. Note: if you had a form with default values, and you wanted to allow the user to reset the values in the form, the Action could be Reset form 3. Preview in Browser. Your page should look something like this:

1. Spry Validation Checkbox a. Let s pretend we ve got a list of rules and regulations, and we want to insist the Customer has read those rules and regulations. We will add a Spry Validation Checkbox. b. In your form, before the Submit button, place your cursor c. Type I have read the rules and regulations and I accept the terms. Hit return. d. Select Insert->Spry->Spry Validation Checkbox e. Do the whole Accessibility thing. Next to label, write, I accept f. Make sure the Spry Checkbox properties are visible. Click on the vibrant blue Spry Checkbox: sprycheckbox1 above the I Accept checkbox g. We now enter the Required option. This is the point of using the Spry Validation Checkbox to have a required option. h. Make sure we Validate on Submit (because we ve got a submit button) i. Make sure Required(single) is selected so that the button must be selected.

j. Preview in Browser k. Try submitting without checking the I Accept button 2. Defining a Spry Validation Text Field a. We may wish to insist users enter their email address. To do this we ll add a Text field below Last Name, and we ll insist that that field have content. b. Click below Last name, but above State in the form (you may need to hit carriage return to get a new line in your form c. Select Insert->Spry->Spry Validation Text Field d. In the Input Tag Accessibility, add the Label: Email Address. e. Add an Access Key and Tab Index number. f. Hit OK g. In the Properties box, next to Type, select Email Address h. Next to Preview states, select Invalid Format (so that if the email address entered is not a validly formatted email address, you ll get a message stating that). i. In the Properties box, Choose Validate on Submit j. Make sure the Required checkbox is checked. This makes this field a required field k. You can set a minimum number and maximum number of characters (for something like, say, a zip code), but we don t need to. l. Save and Preview in Browser m. Play with entering either no email address or an invalid email address, then entering a valid email address. Upload your form: 1. Using the instructions in lab 5, upload your lab to a folder on the server you created called DreamweaverLab7 2. Submit your url to your TA