Skip to content

Module: ContactForm

sque edited this page Aug 7, 2013 · 2 revisions

Usage

To add a new contact form, place the following text at your desired position.

##contactform <target_email> "<title>" "<button label>"
<field1>
<field2>
...
<fieldN>
-
<thank_you_text>
##

TargetEmail

This is the email that will receive all contact requests. In the body you will find the answer of all fields.

Title

This is the title of the form that will be added on the top.

ButtonLabel

This is the label of the submit button.

Field

Each field has the following format: <name>(<opt1>=<value1>,<opt2>=<value2> ... <optN>=<valueN>)

  • name : The name as an identifier for the field. It must be only letters.
  • options : Each options is a configuration for this field.

Field/Supported Options

  • type : Defines the type of field. Supported values are (text, password, textarea, email, url, select, range, number, radio, checkbox)
  • label : The label that will be put on top of this field.
  • hint : A hint to be displayed for this field.
  • required : If true this field will be required from the user before sending the form.
  • maxlength : The maximum in characters that this field can be.
  • pattern : A regular expression that will be used to validate this field.
  • min : The minimum value for range, number type.
  • max : The minimum value for range, number type.
  • step : The step of values for range, number type.
  • value : The default value of this field.

ThankYouText

This is the text that will be displayed in place of the form after a successful form submission.

Examples

##contactform [email protected] "" "Send"
sender(label=Sender,hint=Add your email here and a name to contact you back)
message(type=textarea,label=Your message)
-
Thank you for sending your comments. We will try to contact you back as soon as possible.
##
Clone this wiki locally