-
Notifications
You must be signed in to change notification settings - Fork 1
Module: ContactForm
sque edited this page Aug 7, 2013
·
2 revisions
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>
##
This is the email that will receive all contact requests. In the body you will find the answer of all fields.
This is the title of the form that will be added on the top.
This is the label of the submit button.
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.
- 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.
This is the text that will be displayed in place of the form after a successful form submission.
##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.
##