User Tools

Site Tools


doc:dev:form:form_to_email_cgi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
doc:dev:form:form_to_email_cgi [2014/06/19 17:54] – created vikkidoc:dev:form:form_to_email_cgi [2015/01/16 15:24] (current) – external edit 127.0.0.1
Line 1: Line 1:
-===== Afteroffice Form-To-Email Template (v1.3) =====+====== Afteroffice Form-To-Email Template (v1.3) ======
  
 \\ \\
-Quck start sample: Enquiry form, Registration form, Form with date picker (popup calendar), Flash Sample\\+Quick start sample: Enquiry form, Registration form, Form with date picker (popup calendar), Flash Sample\\
  
 **Important:** **Important:**
Line 26: Line 26:
 <FORM action="http://vo.mydomain.com/cgi-bin/vo/formmail.cgi.vo" method="post">\\ <FORM action="http://vo.mydomain.com/cgi-bin/vo/formmail.cgi.vo" method="post">\\
  
-^Field Name ^Sample ^Detail^ +^Field Name ^Detail^ 
-|_formFrom | |Show in the FROM: section of the email| +|_formFrom |Show in the FROM: section of the email| 
-|_formSubject | |Subject of email: The date & time stamp [datetime] will be replaced with the form submission date and time. [formRef] is a unique number genereted for the email, good for tracking use| +|_formSubject |Subject of email: The date & time stamp [datetime] will be replaced with the form submission date and time.\\ [formRef] is a unique number genereted for the email, good for tracking use| 
-|_formTo | |Email for this form to send to. You can turn this to hidden field if you are sending this form to a permanent address. Separate each email with ","+|_formTo |Email for this form to send to.\\ You can turn this to hidden field if you are sending this form to a permanent address.\\ Separate each email with ","
-|_formOutputTemplate (new)| |The field/value format in email. By default, this is set to:\\ +|_formOutputTemplate (new)|The field/value format in email. By default, this is set to:\\ [<field>]<br><value><br><br>\\ You can change the format easily to:\\ <field>: <value><br><br>\\ If you would like to have the field name and value stay in one line.\\ Note that only 3 keywords are supported: <field>, <value> and <br>
-[<field>]<br><value><br><br>\\ +|_formOutputTemplate_header (new) |The text to insert at the beginning of the email| 
-You can change the format easily to:\\ +|_formOutputTemplate_footer (new) |The text to insert at the end of the email| 
-<field>: <value><br><br>\\ +|_form_contenttype (new) |The MIME email content type. "text" or "html" allow, default "text".\\ Good to set it to "html" if you have formated the form format to html| 
-if you would like to have the field name and value stay in one line.\\ Note that only 3 keywords are supported: <field>, <value> and <br>+|_formNext |Where do you want to go after this form submitted.\\ After a successful post, where do you want to bring the user to next?\\ Specify the URL here (eg: http://www.mysite.com)\\ Skip this if you wish to use the default| 
-|_formOutputTemplate_header (new) | |The text to insert at the beginning of the email| +|_formErr |What do you want to show if this form has some incomplete entry (eg: http://www.mysite.com/error.htm)\\ Skip this if you wish to use internal error handling| 
-|_formOutputTemplate_footer (new) | |The text to insert at the end of the email| +|_formCleanFieldName (new)|Use in pair with mandatory field name.\\ Don't show the tilt "~" in mandatory field name if checked. Eg: ~name will become name in email| 
-|_form_contenttype (new) | |The MIME email content type. "text" or "html" allow, default "text". Good to set it to "html" if you have formated the form format to html| +|_formVoidNum (new) |Don't show the number prefix in field name if checked, eg: 1,name will be shown as name in email| 
-|_formNext | |Where do you want to go after this form submitted.\\ After a successful post, where do you want to bring the user to next? Specify the URL here (eg: http://www.mysite.com)\\ Skip this if you wish to use the default| +|_formAllField |All field wanted; checked if you want the user to fill-up all the fields| 
-|_formErr | |What do you want to show if this form has some incomplete entry (eg: http://www.mysite.com/error.htm)\\ +|_form_custom_header (new) |The additional MIME header to insert into the email. Usually not require. Format in Key: Data (eg: To: online@domain.tld)| 
-Skip this if you wish to use internal error handling| +|_formDateFormat (new) |The custom date format. Available: YYYY (4 digits year), YY (2 digits year), MM (2 digits month), M (single digit month), DD and D. All date format in upper case. Time format as hh, h, mm, m, s, ss (lower case). Eg: YYYY/MM/DD hh:mm:ss returns 2010/03/30 13:22:00| 
-|_formCleanFieldName (new)| |Use in pair with mandatory field name. Don't show the tilt "~" in mandatory field name if checked. Eg: ~name will become name in email| +|Mandatory field |User must fill in this field - or error warning will be given after submit. All mandatory fields start with a tilt "~". Set the _formCleanFieldName to checked if you would like the field name to be shown without the "~" in the email| 
-|_formVoidNum (new) | |Don't show the number prefix in field name if checked, eg: 1,name will be shown as name in email| +|Custom field: prefix number order|Any field name starts with a number, seperates by a comma (",") from the rest of the field name (eg: 1,name or 20,address). Use these fields naming method to organize the sequence of the output. Smaller number always appear first in the email. Good to use this with _formVoidNum set to checked, where you can hide the number portion| 
-|_formAllField | |All field wanted; checked if you want the user to fill-up all the fields| +|Custom field |Any field you want| 
-|_form_custom_header (new) | |The additional MIME header to insert into the email. Usually not require. Format in Key: Data (eg: To: online@domain.tld)| +|Custom field: POP-up |Any pop-up field| 
-|_formDateFormat (new) +|Custom field: Multiple selections |Let user select multiple choice| 
-|The custom date format. Available: YYYY (4 digits year), YY (2 digits year), MM (2 digits month), M (single digit month), DD and D. All date format in upper case. Time format as hh, h, mm, m, s, ss (lower case). Eg: YYYY/MM/DD hh:mm:ss returns 2010/03/30 13:22:00| +|Custom control: Radio buttons |Radio buttons| 
-|Mandatory field | |User must fill in this field - or error warning will be given after submit. All mandatory fields start with a tilt "~". Set the _formCleanFieldName to checked if you would like the field name to be shown without the "~" in the email| +|Custom control: Check boxes |Check boxes| 
-|Custom field: prefix number order| | |Any field name starts with a number, seperates by a comma (",") from the rest of the field name (eg: 1,name or 20,address). Use these fields naming method to organize the sequence of the output. Smaller number always appear first in the email. Good to use this with _formVoidNum set to checked, where you can hide the number portion| +|Custom field: Large text|Store more text| 
-|Custom field | |Any field you want| +|Custom field: hidden|There are 2 hidden fields in the sample. Values for these fields will also submit as data into the mail| 
-|Custom field: POP-up | |Any pop-up field| +|Submit button |You may change the label to anything| 
-|Custom field: Multiple selections | |Let user select multiple choice| + 
-|Custom control: Radio buttons | female  male |Radio buttons| +View PDF version: {{:doc:dev:form:form_to_email_cgi.pdf|}}
-|Custom control: Check boxes| |Option 1 Option 2 |Check boxes| +
-|Custom field: Large text| |Store more text| +
-|Custom field: hidden| +
-There are 2 hidden fields in the sample. Values for these fields will also submit as data into the mail| +
-|Submit button | |You may change the label to anything|+
  
 Jan. 2000\\ Jan. 2000\\
doc/dev/form/form_to_email_cgi.1403171677.txt.gz · Last modified: 2015/01/16 15:24 (external edit)