Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

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..

Replies are listed 'Best First'.
Re: dynamic forms
by PodMaster (Abbot) on Feb 27, 2004 at 08:38 UTC
    I'd do something like this. I'd combine that idea with CGI::FormBuilder.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.