Model Entity Relationship Dynamic form

Asked

Viewed 38 times

0

I created a code where the user is able to drag components and make their own form.

I want to save the data coming from the user but I have no way to define how many fields he will insert in the database, so I have no way to create the fields in the table since I do not know what is the amount of elements created. For example: If I have 2 text fields in my html as( email) and (name) logo, in my BD table I will have the fields that store these two data.In my problem I have no way to define these fields in the BD pq do not know how many elements the user can create in the form. On the link is my form Disable property using Draggable jquery UI and javascript

  • So I think it’s more feasible for you to create a table called properties, and store the elements with the id user’s, nome of the element and valor of the element.

  • There are systems that work with the columns col1, col2, col3... I don’t like this format because besides limiting the amount of elements, there is no way to know what information the field stores.

  • I think I get it. Tomorrow I’ll do SQL. Anything I come to ask you again,?

  • No problem, just edit the question or if you run too far from creating another one.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.