Alabama Cooperative Extension System
 
ACESAG Technology Reference Desk
Email ·  Hardware ·  Software ·  Networking ·  Security ·  Accounts
Web Development ·  Policies ·  Purchasing ·  Distance Learning

  
 

Auburn University College of Agriculture
 
CTU > Reference Desk > Web Development > Dreamweaver > ACES: CTU: Computer Reference Desk: Dreamweaver

Dreamweaver - Forms - Adding a file field



Go to the forms tab on the Insert menu:



Click on the icon to create a new form. In Design view, the form is outlined by a dashed red line.


Once you've created a form, move your cursor inside the form area. Then click on the icon to create a new file field. File fields consist of a text field and a browse button. File fields are used to select files from the user's hard drive.
Choose a file:
Here's the code for that example:


If you want to change the properties of the file field, right click on it and select what you want to edit.

Selecting "Name..." pops up a window that allows you to change the name of the file field.



Selecting "Value..." pops up a window that lets you change what the default text of the file field will be. This is usually left blank.



Selecting "Edit Tag <input>..." allows you to change all of the attributes at once:



  • The "Type" dropdown menu lets you change it from a file field to a radio button or any other kind of form element.
  • The "Name" field lets you change the name of the file field.
  • The "Size" field lets you specify how large(in characters) the text field part of the file field will be.
  • The "Disabled" check box will grey out the file field and not allow the user to select it.
  • *Note*: This does not let you change the "Value" of the file field, to do that, you must right click on the file field in design view and select "Value...".


Select "Edit Tag Code <input>..." if you want to edit the tag properties by hand.

Alternatively, you can change the properties of the file field through the properties menu:



  • The text field under "FileField Name" lets you change the name of the file field.
  • The "Char Width" field lets you specify how large(in characters) the text field part of the file field will be.
  • The "Max Chars" field lets you specify how many characters can be entered in the text field portion of the file field. This is usually left blank.
  • *Note*: This does not let you change the "Value" of the file field, to do that, you must right click on the file field in design view and select "Value...".


  Dreamweaver Home  

CTU > Reference Desk > Web Development > Dreamweaver > ACES: CTU: Computer Reference Desk: Dreamweaver
        Click here to ask a question