######## *define-variables* section ######## *define-variables* # Note that all variables expect [comment] are required [req-name] [req-email] [req-phone] [req-address] ######## *success-response* section ######## *success_response* # Note the !use-linebreak-mode command below # This will cause
s to be added at the end of each line in the comment # but only for this section !use-linebreak-mode = [comment] # just a simple success-response here which # verifies that all required variables were completed Success

Thanks for completing all fields!

Below are the values you supplied:

Name: [name]
E-mail address: [email]
Phone number: [phone]
Street address: [address]
Comment:
[comment]

Return to the original form.

######## *error-response* section ######## *error-response* Error

Error - Missing Fields

Examine the form below and please complete the missing fields.

# The form below is just like the original except that if the user # has supplied a value, we use it to prefill that portion of the form. # If no value was supplied, we print "Whoops" and ask for the value # again

# "name" was supplied. Use it to prefill the "name" field !print-if [name] Your name:

# "name" was not entered. Whoops !print-if [name] eq "" Oops! Please enter your name below:

# Do the same for the other form variables !print-if [email] Your email address:

!print-if [email] eq "" Oops! Please enter your email address:

!print-if [phone] Your phone number:

!print-if [phone] eq "" Oops! Please enter your phone number:

!print-if [address] Your street address:

!print-if [address] eq "" Oops! Please enter your street address:

# Note, we're prefilling the textarea with [comment] # In this case, no !use-linebreak-mode was used because # we don't want the user to see
s at the end of every line !print-if [comment] Your comment:
!print-if [comment] eq "" The comment below is optional:
!end-print-if

Return to the original form.