I am working on a web form for a client and they would like it to be expandable.

The best way to explain it is this:

Each form will contain billing/contact information and service request information. The service request section is for telecomm additions, modifications, and removals of service. The main problems with the old forms is that you had to submit one request for each, well, request. You could not submit multiple jobs from one form with the same billing and contact information.

So what I would like to do is make the form and associated HTML in perl with CGI.pm. So we have the form start out with a default number of request sections (each one containing checkboxes, textfields, whatever) and the number of those request sections is expandable by the user(to be duplicated precisely each time one or more is added). Perhaps there is a text field which they can add a number to and have that modify the form(suggestings on a good way to expand the form are also welcome, I have ideas but there might be something simpler I am missing).

So say we start out with something like this:

My Great Form!

I want to be able to expand it to something like this on the fly:

My Great Form!

Great. So the form is expandable.

My questions surrounding this are these:

Are there other sources people would recommend or are they techniques anyone here has used to deal with similar issues? I checked Q&A but I didn't find much in the way of helpful information (although Ovid's CGI Course has been quite informative about what /not/ to do).

As always, any advice is much appretiated.

_____________________
mjn


In reply to "Dynamic" HTML Forms, Tracking Data and Trepidation by mjn

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.