I've created mailing forms dozens of times, but on comes a new topic. Dynamic forms. A client wants me to make them a form where they can resell it as a package for other people. They want a form designed so the users can make their own questions and change the outlook of the form and everything.

Solution: Somehow set it up where the user creates questions and selects 'textbox', 'radio button', 'text line', 'text box', etc. I have this setup save the information to a flatfile database, DB_file or just a text file. From here, print the desired results.

Questions: Is that how any of you would go about doing this? Would it be easier having them write questions|form option type|required on each line of a text document and parse it? How would you require some fields this way? That would require a complete rewrite of the script source to have them create dynamic forms where they can choose what they want to be a required form field.

I am lost as to how this is done, so any advice that you can offer..


In reply to dynamic forms by Anonymous Monk

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.