CGI-FormMagick

 view release on metacpan or  search on metacpan

examples/buttons.xml  view on Meta::CPAN

<form title="Button on/off example" header="head.tmpl"
footer="foot.tmpl" post-event="post">
    <page name="page1">
        <title>Gratuitous first page</title>
        <html>
        <![cdata[
            <p>This example form lets you turn buttons on and off.  Hit
            "Next" to get to the actual example</p>
        ]]>
        </html>
    </page>
    <page name="buttons" post-event="fix_buttons">
        <title>Buttons</title>
        <field id="previousbutton" type="checkbox">
            <label>Previous button</label>
        </field>

examples/fragments.xml  view on Meta::CPAN

<form title="Hello" header="head.tmpl" footer="foot.tmpl" post-event="say_hello">
    <page name="Name">
        <title>I'm the FormMagickian.</title>
        <field id="name" type="text" validation="nonblank">
            <label>Your name?</label>
        </field>
        <html>
            <![cdata[
            <p>
            <font color="ff0000">THIS IS A FRAGMENT</font>
            </p>
            ]]>
        </html>
        <field id="howmany" type="text" validation="nonblank">
            <label>How many repeats?</label>
        </field>
        <subroutine src="subroutine()" />
    </page>

examples/group-default.xml  view on Meta::CPAN

<form title="Grouped fields default value test" header="head.tmpl"
footer="foot.tmpl" post-event="post">
    <page name="select">
    <description>
    <![cdata[
        This script is intended to test that default values get set
        correctly in 'select' dropdowns and 'radio' button groups. To test
        <b>this, do the following: 1) note that the default "blue"
        is</b>
        chosen for the first page.  2) choose "green" instead.  3) hit
        "Next".  4) Note that "BSD" is selected as default.  5) Choose
        OSX and then hit "Previous".  6) Note that "green" is selected, 
        so that user choice overrides the default.  7) Hit "next" and
        note that "OSX" is selected, again letting user choice override
        the default.



( run in 0.649 second using v1.01-cache-2.11-cpan-454fe037f31 )