Skip to content

Commit

Permalink
list of available form field elements in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Widell committed Mar 31, 2010
1 parent d8ed7eb commit b637176
Showing 1 changed file with 74 additions and 0 deletions.
74 changes: 74 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,78 @@ When a form posted back to the script is Execute():ed and passes the validation,

If all the data seems to be OK, use the Process() method to handle it somehow. It would usually involve saving a file, modifying the database or sending an email. If you need to send a deader to the client browser, such as a cookie or a redirect, make sure you call Execute() before you output any HTML, since headers must normally be sent first of all.

Available field element classes
-------------------------------

wwHidden
$Name
$Value

wwSubmitButton
$Name
$Label
$Warning=''

wwText
$Name
$Label
$Multiline=false
$PreSetValue=''
$ValidationExpression='.*'
$ErrorMessage=''
$HideText=false
$ClearHiddenOnPostBack=false

wwEmail
$Name
$Label
$PreSetValue = ''
$ErrorMessage = 'Please enter a valid e-mail address.'
$Required = false

wwNumeric
$Name
$Label
$PreSetValue = ''
$ErrorMessage = 'Please enter a numeric value.'
$Required = false

wwDate
$Name
$Label
$PreSetValue = ''
$ErrorMessage = 'Please enter a date in the format YYY-MM-DD.'
$Required = false

wwHTTPURL
$Name
$Label
$PreSetValue = ''
$ErrorMessage = 'Please enter a valid web page address.'
$Required = false

wwSelectBox
$Name
$Label
$Options
$PreSetValue = NULL

wwCheckBoxList
$Name
$Label
$Options

wwFileUpload
$Name
$Label
$ValidationExpression = '.'
$ErrorMessage = ''

wwCheckBox
$Name
$Label
$PreChecked = false
$Required = false
$ErrorMessage = ''


Expand Down

0 comments on commit b637176

Please sign in to comment.