conform plugin

conform plugin by William Fletcher
Simple HTML forms with HTML e-mail output

Last updated on 2008-10-29. Provides Syntax, Helper.
No compatibility info given!

Similar to contact, form.

Tagged with contact, email, feedback, form, survey.

Download and Installation

Warning

This plugin should currently only be used on closed wikis, because it could easily be abused as a spam gateway. Counter measurements are planned for future releases.

Usage

A sample form

Fully loaded example:

In main DokuWiki config you will need to allow the “page” (specified by the “ID” in the uri, so namespace:anothernamespace:page, etc). And then allow e-mail to where you desire (In the example: toenail@fingernail.co.za and peanut@butter.co.za), this prevents the service from being abused on a public wiki. (Although, please heed the warning above, this is still not suitable for public wikis yet, just the initial design is heading that way).

<CONFORM>
MailTo "toenail@fingernail.co.za, peanut@butter.co.za";
MailSubject "BigEvilCorp - Leave Form";
Textbox EmployeeName "Employee Name" 180;
Constraint EmployeeName "Fill in the the Employee Name" minLength="2";
Textbox PracticeOrDepartment "Practice Or Department" 180;
Constraint PracticeOrDepartment "Practice or Department" minLength="2";
Textbox Position "Employee Position" 180;
Constraint Position "Fill in the Employee's position" minLength="3";
Select TypeOfLeave "Type of leave requested" "Annual Leave,Sick Leave" 180;
Textarea ReasonRequestedOther "Specify Other If Selected Above" 10 320;
Radio ReplacementArranged "Replacement/Locum Arranged" "Yes,No,Not required";
Textbox name "Your name" 180;
Static "A combobox declared by a list";
Select country "Your country" "Biscuit, Tea, Coffee" 180;
Static "A combobox declared by a name";
Line;
Checkbox news "We advice you to subscribe to our newsletter" 1;
Checkbox news2 "We advice you to subscribe to our newsletter" 0;
Line;
Radio zahlmethode "Payment:" "Mastercard,Visa,Cash, Paypal";
Line;
Textarea comments "**Comments**" 10 320;
Textbox zip "zip" 180;
Textbox mail "e-mail" 180;
Textbox max7 "max 7" 180;
Textbox min7 "min 7" 180;
Textbox greptest "greptest" 180;
Textbox testint "Int test" 180;
Textbox testfloat "Float test" 180;
Textbox functiontest "Function test" 180;
Constraint min7 "Mind. 7 digits!" minLength="7";
Constraint max7 "Max. 7 digits!" maxLength="7";
Submit "Submit" 200;
Textbox zipzip "zip" 180;
RowsStart 3;
Textbox DaysWorked3 "Day's Worked" 90;
RowsEnd;
RowsStart 10;
Textbox DaysWorked "Day's Worked" 90;
Textbox FromTime "Start Time" 90;
Textbox EndTime "End Time" 90;
Textbox NumberOfHours "Number Of Hours" 90;
Textbox RatePerHour "Rate Per Hour" 90;
RowsEnd;
Textbox meow "zip" 290;
RowsStart 3;
Textbox DaysWorked2 "Day's Worked" 90;
Textbox FromTime2 "Start Time" 90;
Textbox EndTime2 "End Time" 90;
RowsEnd;
</CONFORM>

A sample email

TODO

  • Setup an 'amounts' keywords that pushes financial amounts to the right.
  • Fix characters allowed in the keywords, because users can stop $_POST from functioning.
  • Setup a something to stop spam bots.
 
plugin/conform.txt · Last modified: 2009/01/04 07:44 by 67.170.0.207
 

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported

Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsDarcsXRefTranslate