Reputation: 1114
I am trying to make form builder in android. I have a real problem at designing database. In this application User first drags the required fields to the screen and change the labels of fields. The fields Contains:
I have real problem in designing database.I need a help to accomplish it.
Any Links to the tutorials or ER Diagrams will be really appreciated. In this application user will drag his required fields to the screen as shown in mock up. Suppose when user drags on checkbox icon then the Editable Checkbox label and editable options will appear in the screen. Then Form builder names the label according to his requirements and options also. In this way he first builds the form .
Upvotes: 2
Views: 366
Reputation: 3190
That's what I created in 10 minutes, hope it helps.
UUID_Type,
Type_Name, (Checkbox, RadioButton, Textbox, PlainText, Password, DropdownSelect...)
UUID_Rule,
Rule (numeric only, not null...)
UUID_Table,
Table_Name, (Designed table name)
UUID_TableField,
UUID_Table,
UUID_Type,
UUID_GroupID, (can be null if field is single type*)
UUID_Rule,
Field_Name, (Display name)
Field_Length,
UUID,
GroupID,
GroupData,
Upvotes: 1
Reputation: 192
I would create a table for storing the field definitions with fields like this:
From this data, you can dynamically build your GUI.
And you will need another table for storing the answers (if it is in scope of your app):
Upvotes: 0