How to design an efficient Custom field form data table?

Source: Internet
Author: User
Ladies and gentlemen: the younger brother has such a demand. This is a custom form module, which has several common fixed fields (Optional). You can also add custom fields as needed. When the front-end page is displayed, these fields can be listed for users. I have implemented one before...

Daniel:
The younger brother has such a demand.

This is a custom form module, which has several common fixed fields (Optional). You can also add custom fields as needed.
When the front-end page is displayed, these fields can be listed for users.

Previously, I implemented a similar function to store all fields in an array, convert the array to a serialized string for storage, and traverse the field information at the front end to form a list.
The information entered by the front-end user matches the index and field and is saved to the database.
In this way, functions can be implemented, but there is a drawback: It is difficult to filter out suitable data by field when we prepare data statistics tools for operations in the future, such as mobile phones, I don't even know which users have filled in their mobile phones and which have not been filled in.

So I hope you can give me some advice. Design a more efficient form data table.

Reply content:

Daniel:
The younger brother has such a demand.

This is a custom form module, which has several common fixed fields (Optional). You can also add custom fields as needed.
When the front-end page is displayed, these fields can be listed for users.

Previously, I implemented a similar function to store all fields in an array, convert the array to a serialized string for storage, and traverse the field information at the front end to form a list.
The information entered by the front-end user matches the index and field and is saved to the database.
In this way, functions can be implemented, but there is a drawback: It is difficult to filter out suitable data by field when we prepare data statistics tools for operations in the future, such as mobile phones, I don't even know which users have filled in their mobile phones and which have not been filled in.

So I hope you can give me some advice. Design a more efficient form data table.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.