(Answer) (Category) Faq-O-Matic Faq-O-Matic : (Category) Administrators' Guide : (Category) In Development :
Formulars
Summary of the dev. of formulars in FOM
Basile Chandesris - base@citeweb.net


PURPOSE AND EXEMPLE:

>I need to change the post form for a specific category.
> Instead of having one field, i need 3 fields that would be parse in HTML
> in a specific
> way in HTML and then add as an item of category.
> How i must do that ?
I'm not sure. One way would be to write a front-end CGI wrapper that uses
the API.pm module to make the changes to the FOM. That's clumsy, though.

> Ability to create over-form ?
> ex: The answer of a category dealing with break down of machines :
> must be separated in few fields, to help the user to give the
informations.
>
> machine :
> date :
> causes :
> solution :
>
> and then the result could be parsed as an answer.
This was your previous request. It seems like a good idea. If you can think
of a way to build it, I'll happily accept a patch. :v)


FILES CREATED:
FormMaker.pm - Create formulars
FormUse.pm - Choosing a formular already created


FILES MODIFIED: search for "Basile Adds FORM :"
Item.pm - call of FormMaker.pm and FormUse.pm
dispatch.pm - mkForm

 http://members.xoom.fr/base/fom/form/FormMaker.pm --- (read more in this)
 http://members.xoom.fr/base/fom/form/FormUse.pm 
 http://members.xoom.fr/base/fom/form/dispatch.pm
 http://members.xoom.fr/base/fom/form/Item.pm
 http://members.xoom.fr/base/fom/form/SubmitForm.pm

  
HOW I SEE THIS:
1. Editing a formular 

   (1) Click on [Category : Options (Title, parts order)]
   (2) (then call in the file Item.pm)
       cmd=FormMaker&file=    cmd=FormUse&file 
   (3) then dispatch.pm to run the cgi commands.
   (4)

2. Setting a formular in a category or answer
   = Using a formular already created
[Append to This Answer]
Previous: (Answer) Changing the appearance of FOM with HTML and giving the hability to use other codes in the future like XML
Next: (Category) Tracking errors
This document is: http://www.jonh.net/cgi-bin/faqomatic/fom?file=497
[Search] [Appearance]
This is a Faq-O-Matic 2.718d.
Hosted by SourceForge Logo and jonh.net.