there are two parts to the problem: Storage and UI
Storage: You'll need 3 files
- Form (contain the name/header of the form)
- questions (one record per question/field), linked to forms
- answers, one record per answer, linked to questions
In order to create a form, the user will just have to give it a name, then enter each question one after the other. If necessary, you can add a list of controls/conditions (mandatory or not, size of answer, type of answer, range of answer, etc)
Now the UI (to USE a form):
You can either use a wizard type UI or a list type one. The wizard one displays one question at a time, with a next button. This is easy to code and has the advantage of being easily usable from a phone. THe UI will have different types of fields, and depending on the controls/cnditions of the question, will make visible what is needed (by example a date field, a short text field, a memo field)
For the list one, you can simply use a looper with a question per line, and again different types of fields and again only visible fields are those needed
In both case, it's simple enough to code