InputForm Configuration —
I am presenting a brief overview of the approach followed by me during my previous project on input-form configuration.
I created an InputFormImporter which imported the input-forms from a default XML file present in the /config folder into the database. This was necessary for loading the default form.
The major DB changes were as follows-
Following tables were added.
1.InputForm- To represent a new added input-form.
2.collection2inputform-To map a collection to an inputform.
3.InputFormPage-To represent a page of the form submission step.
4.form2page- To map a page to any particular input-form
5.InputFormField-To represent a submission field in a particular page.
6.field2page --To map a submission field to a page
7.valuepair – To represent a particular selection list
8.valuepairelement- To represent a particular selection-list element.
9.input-type – To represent content-type
Screenshots are attached.
The basic API additions were as follows-
InputForm-Class representing an inputform
InputFormField-Class representing an input-form field
InputFormPage-Class representing an input-form page
ValuePair-Class representing a value-pair
ValuePairElement-Class representing a value-pair element
Screenshots -