">
This table shows a set of output elements, and how they get displayed based on what you put into the form. Remember that the same output elements can be used in email and file templates.
| <output name="some_text" pre="You typed : <b>" post="</b> for Some Text" alt="You didn't put anything in the some text bit" type="html"> |
|---|
| <output name="some_text" case="upper" alt="<br>" type="html"> |
| <output name="some_text" case="lower" alt="<br> type="html""> |
| <output name="cc" alt="<br> type="html" format="%cccc%""> |
| <output name="text_box" indent="....." alt="Text box left blank" type="html"> |
| <output name="text_box" alt="This would remove newlines and Tab characters" type="html" charmap=" , " newline="none"> |
|
|
| <output name="text_box" alt="This would map a to x and b to y" type="html" charmap="a,x" charmap="b,y"> |
|
|
| <output name="checks" alt="No checkboxes checked"> |
|
|
| <output name="checks" list="text" delim=", " alt="No checkboxes checked"> |
|
|
| <output name="checks" list="text" alt="No checkboxes checked"> |
|
|
| <output name="non-existant" alt="This field doesn't exist, but is ALTed"> |
|
|
| <output name="non-existant" altvar="http_date" format="%mmm%"> |
|
|
| <output name="SoupermailConf" sub="This field does exist, but is SUBed"> |
|
|
| <output name="SoupermailConf" subvar="http_time"> |
|
|
| <output name="text_box" type="escaped" alt="<br>"> |
|
|
| <output name="checks" math="checks * 2" alt="<br>" pre="val * 2 = "> |
|
|
| <output name="checks" math="checks / 3" alt="<br>" pre="val / 2 = "> |
|
|
| <output name="checks" math="checks + 5.5" alt="<br>" pre="val + 5.5 = "> |
|
|
| <output name="checks" math="checks / non_existant" alt="<br>" pre="val / non_existant = "> |
|
|
| <output name="SoupermailConf" math="5*5" alt="<br>" pre="5*5 = "> |
|
|
| <output name="checks" math="checks / (num1 + num2)" alt="<br>" pre="val / (num1 + num2) = " precision="4"> |
|
|
| <output name="checks" math="checks / (num1 + num2)" alt="<br>" pre="val / (num1 + num2) = " precision="4" charmap=".,," post="<br>Using charmap, we can change the decimal point from . to ,"> |
|
|
| <output name="SoupermailConf" math="sum(checks)" alt="<br>" pre="sum(checks) = "> |
|
|
| <output name="SoupermailConf" math="count(checks)" alt="<br>" pre="count(checks) = "> |
|
|
| <output name="SoupermailConf" math="sum(checks) / count(checks)" alt="<br>" pre="checks average = "> |
|
|
| <output name="SoupermailConf" math="num2 - -.10"> |
|
|
| <output name="SoupermailConf" math="num1 - 090"> |
|
|
| <output name="SoupermailConf" math="090 + num1"> |
|
|
| <output name="SoupermailConf" math="10 - num1"> |
|
|
| <output name="SoupermailConf" math="10 - num1 * 2"> |
|
|
| <output name="SoupermailConf" math="(10 - num1) * 2"> |
|
|
| <output name="SoupermailConf" math="num1 / 3"> |
|
|
|
<output name="SoupermailConf" math="(num1 / 3) - 0.5" precision="0"> This shows how to get the integer value of a number |
|
|
|
<output name="SoupermailConf" math="num1 / 3" precision="-3"> This shows how to get the fractional value of a number |
|
|
Return to the examples page.
The Soupermail configuration file that made this page looks like this:
|
|
The template that made this page is testform.txt.