Research on Intelligent BS Forms Drag-and-Drop Layout Generation Technology
Published Online: Feb 05, 2025
Received: Oct 07, 2024
Accepted: Jan 05, 2025
DOI: https://doi.org/10.2478/amns-2025-0048
Keywords
© 2025 Yujiao Liu, published by Sciendo
This work is licensed under the Creative Commons Attribution 4.0 International License.
Nowadays, people have entered an era of rapid development of information, and information technology is constantly being revolutionized. The traditional way of production and life is undergoing great changes with the times. The pace of the information age has been rapid impact on people’s lives, which also makes us live in the entire social pace is also accelerated. The circle of people’s social activities has also rapidly become larger with the expansion of the Internet [1–3]. People can participate in social activities without leaving their homes or through computer networks, which are less and less restricted by space. As long as people participate in the activities to participate in the object of information processing and the object to participate in the social activities are complex and diverse, it will produce a huge amount of information data that needs to be processed [4–5].
In the traditional way of information processing, the main medium used is paper for the design, printing and production, distribution, recycling, data analysis and summarizing of the phenomenon reflected in the data, which needs a very long cycle. This approach is not only inefficient but also inaccurate and can add a lot of human, material and time costs [6–8]. The invention of computers in the last century has transformed this phenomenon, and the speed with which computers can process massive amounts of information has made it one of the hallmarks of the third industrial revolution as well. In the last century, many countries in the West have already captured various types of information about social activities through the use of e-forms, which have been applied to most areas of daily life [9–11]. When people participate in social activities, they only need to fill out an electronic form, and the activity organizer can quickly process the information of the activity participant, which saves working time and greatly improves working efficiency. One of the most famous and representative software is BS Forms, through which people can edit and design the e-forms they want [12–14]. The drag-and-drop layout of the form is one of the main problems that need to be considered, and the emergence of intelligent generation technology provides a new technical idea to solve this increasingly complex problem [15–16]. Intelligent BS form drag-and-drop layout generation technology for the realization of the user through a simple drag-and-drop operation can be quickly completed from connecting to the data source, parsing and converting data, configuring the data and style of the visualization chart, dashboard personalized layout to share the data visualization results of a series of the data intelligence process, not only can effectively improve the use of experience and efficiency but also to reduce the user’s learning costs [17–19].
In this paper, the C/S architecture in software upgrades cannot automatically update the client and other issues. Instead, we use B/C architecture to solve pain points and design intelligent dynamic forms using this architecture. The structure and content of the dynamic form are simulated using the virtual table data model, and the form design is divided into the form definition and data reporting parts according to their respective functions. The storage of reported data is optimized by calculating the variance, so that the data between the tables of recorded data items is kept average. The drag-and- drop component is Vue. Draggable in Vue is used to implement the drag and drop of the form components, and the drag and drop layout of the dynamic form is designed by changing the positional values of the elements from the top of the page and the left side of the page. Evaluation metrics for drag-and-drop dynamic form layout are constructed from both objective and subjective dimensions. Eye movement data, such as total gaze time, number of gaze points, number of eye jumps, etc., were used to constitute objective evaluation indexes. Questionnaires and scales are used to collect subjects’ satisfaction and cognitive load, which are then used to form subjective indicators for evaluating drag- and-drop dynamic form layout. Design experiments and collect the eye movement data and satisfaction of subjective dimensions and other data from the subjects, compare and analyse this paper’s drag-and-drop layout with waterfall layout and distributed layout, and highlight the soothing effect of this paper’s drag-and-drop dynamic form layout on the user’s eye load.
B/S architecture is a new type of Web architecture developed from C/S architecture, which has the advantages of good compatibility, easy maintenance and low performance limitations compared with C/S architecture [20]. The client and server of the C/S architecture achieve point-to-point bidirectional communication through the TCP protocol, and data transmission is relatively safe. However, the client usually does not have cross-platform, and needs to be developed separately according to different operating systems, and there may be an incompatibility between different operating systems or different versions of the client, which not only increases the development cost but also creates a bad experience for users. At the same time, the client runs on the local computer, both to perform local services and share some of the server’s data processing work. For tasks that involve complex processes and large quantities, the computer must have enough resources to invoke it. Therefore, some of the work is complex, numerical calculations or page rendering effect requires high software on the computer hardware configuration has certain requirements, low configuration of the computer may not be able to run the software, or in the continuous iteration and update of the software after the elimination. Finally, the C/S architecture cannot automatically update the client after the software upgrade, requiring users to manually download the new version or incremental installation, which inadvertently increases the burden on users. Therefore, this paper does not choose to use C/S architecture to develop intelligent dynamic forms.
The B/S architecture addresses the pain point problems in the C/S architecture by using the browser as a simplified version of the client, whose working principle is shown in Figure 1. During the user’s use of the browser, if new resources are needed, the browser sends an HTTP message carrying request parameters to the server, which parses the request according to the parameters, calls the relevant functions to process the request, and performs add, read, update, and delete operations on the database as needed. Finally, after receiving the new page resource file from the server, the browser re-renders the page. From Figure 1, it is easy to see that the browser only performs data requests and page parsing, and does not perform any additional data processing work. Therefore, the browser requires less configuration on the client side, and users do not need to manually update the version.

Working Principle of B/S Architecture
The structure and content of the dynamic form are simulated by the virtual table data model [21]. The design of the form can be divided by function into the form definition part and the data reporting part, in which the form definition part is the structural basis of the table, while the data reporting part is built on the basis of the form definition as a unit of the existing form to report data storage.
A form definition is generated from a record in the virtual table metadata table, a record in the virtual table structure table, and a set of records in the virtual table field definition table. A record in the virtual table metadata table includes information such as the name of the virtual table, who filled it in, and so on. A record in the virtual table structure table describes which fields are included in the virtual table, and descriptions of the data types, constraints, and so on, for those fields are stored in the virtual table field definition table.
In the data model of the virtual table, this part serves to provide space for data reporting for the existing virtual table, so that the dynamic form can be used effectively. The structure of data reporting is shown in Figure 2, including the virtual table reporting cycle dictionary table, the original virtual table record table, and the virtual table record data item table.

Virtual data reporting structure
The reporting period of a virtual table is defined by the reporting period dictionary table, such as daily, monthly, and yearly, thus targeting the management and statistics of reporting on dynamic forms by time and using the time items defined in the reporting period dictionary to control the reporting time period. A record in the virtual table record metadata table describes the date of the virtual table’s data reporting, the reporting person and other information, while a set of records in the virtual table record data item table is used to store the virtual table’s data reported this time. To create a record for a virtual table data report, there must be a record in the virtual table record metadata table and a set of related records in the virtual table record data item table.
In the process of use, the data reported by the user in the reporting data table is stored in a huge amount of dynamically generated data reports in the reporting data table. Insert the number of records is determined by the number of indicators of the form, and the reporting cycle of the form will determine how often these records will be recorded once again. It is not feasible to use only one table in the database for such a heavy data storage task, and storing the data reported by each dynamic form separately can solve such a problem to a certain extent.
In the record data item table, the growth of the data volume is caused by the data reporting of a form, the number of database entries occupied by the data reporting of a data form is determined by the number of fields of the dynamic form, and the period of reporting determines the frequency of reporting of the dynamic form. In order to make the data volume between each record data item table as average as possible, it is necessary to determine the situation in which the reported data of a new dynamic form is stored in four record data item tables. The algorithm predicts the incremental data volume of each record data item table after a period of time for the four scenarios. Here the method of calculating the variance is used to find out the method to make the increase in the data volume of each data table the closest to the average value in order to determine the new virtual table stored in the data table.
The reporting frequency of the forms is divided into daily, monthly, and annual periods. In order to facilitate consideration of the linear increase in the table of recorded data items, assuming a periodicity ratio of
The number of fields in the form will determine the number of records occupied in a particular record data item table for a single report. Assuming that the number of fields in the form is
The same can be done for
When a user adds a new form, the data increment for that new form can be deduced from the reporting period and the number of indicators:
In order to calculate the variance, the mean of the five increments needs to be calculated:
The incremental variance obtained by storing the reported data from the currently added form in the four record data item tables can now be calculated for each of the four scenarios:
By the definition of the variance, the variance of the smallest median value of the one can meet the data increment is closest to the average increment, so that the four record data item table utilisation continues to maintain the average. In practice, after using this method, the record data item table was collected in a particular year in different months of the comparison of the amount of data as shown in Figure 3. At the time of adding a new form, by determining the stored record data item table can determine its later reported data in a fixed position, and by comparing the existing data increment of each table with the data increment of the new form to find the minimum variance of the way to make the data increment of each table to maintain as much as possible the average. The comparison in the figure shows that by choosing the optimisation algorithm, the data growth of each record data item table can be maintained at a relatively average level, which ensures that the efficiency of storage space utilisation is maximised.

Data increment chart of the data record tables
Creating a form page by dragging and dropping is one of the design highlights of this article. For some traditional form designers, the process of creating forms involves clicking the form elements with the mouse. For users, the operation of clicking has some limitations and cannot provide a visually intuitive effect. Therefore, this paper uses the drag and drop method. The operation will not be very hard when dragging and dropping components. There is a component transition effect, which allows users to more intuitively see how the form is created on the page to generate.
The entire form template layout is to use the mouse to click and drag the form components to move to the form design area, and then drag the upper and lower positions to achieve the visible form component drag and drop functionality of the idea and design is the most critical part of the custom form system. Component drag and drop is the mouse in the drag and drop operation. By changing the element’s position value from the top of the page and the left side of the page, this paper can be used to drag and drop controls to set up a designated area.
In the PC browser, from the point of view of using native JavaScript to analyse, the drag and drop event is achieved by monitoring the mouse click event, using the three APIs mousedown, mousemove, mouseup, when the element that needs to be dragged and dropped to bind these events, the event object as a parameter to return to the function, when the mouse is pressed, record the, the start position and the end position are recorded, when the mouse is moved, the position is changed, and the position of the element is obtained by constantly calculating the difference of the movement, when the mouse is left, the binding operation is unbound, and the whole process of dragging and dropping is completed.
In actual development, the drag-and-drop event of form components is not only a simple positional movement, but also has the restriction of the drag-and-drop target area, so the drag-and-drop of form elements has its corresponding drag-and-drop rules. A comprehensive analysis of the native JavaScript drag and drop method mentioned above is not suitable for the development of this system. The page drag and drop operation is relatively rigid, which affects the development effect. Therefore, the drag and drop component Vue. Draggable is used to drag and drop form components, recording the target position before and after the drag.
The flow of component dragging in this paper can be seen in Figure 4. First, select the drag component, bind the drag click event, obtain the current drag position, and determine if it is compatible with mouse displacement. If so, calculate the mobile displacement difference, determine whether the current position can be placed, and if so, place the display. If the judgment is not satisfied, then perform the modification operation. Users can visually drag and drop the form element components to the target area to meet the system requirements and make the operation easier.

Component drag and drop flow chart
Drag-and-drop dynamic forms are more informative than ordinary forms and require a higher degree of patience from users. Therefore, when designing the layout of drag-and-drop dynamic forms, we should consider how to improve the efficiency of users’ information entry, display information reasonably, conform to users’ cognition, and effectively reduce the pressure of users’ input.
Combined with the characteristics of this type of form, the evaluation index of drag-and-drop dynamic form layout is evaluated from two dimensions: objective and subjective. The objective evaluation is based on the efficiency indicators obtained by analysing the data obtained in the eye movement experiment, and the subjective evaluation is based on the satisfaction and cognitive load indicators obtained from the questionnaire survey.
In this experiment, dynamic forms are designed into three schemes, waterfall (A), grouping (B) and drag-and-drop (C), to study the evaluation of the layout mode in the specific interface design of dynamic forms through qualitative and quantitative methods, combined with questionnaires and eye-tracking techniques. The contents of the three schemes have consistency, and the experiment adopts a between-subjects design, dividing 150 subjects into three groups to operate three different schemes, namely, A, B, and C, and ensuring that each group has 25 boys and 25 girls. Scenarios, ensure that there are 25 boys and 25 girls in each group. Before the experiment, the experimenters introduced the purpose of the experiment, experimental procedures, precautions, and so on. During the experiment, the subjects filled in the form according to their situation until it was saved. At the end of the eye movement experiment, the subjects will fill in the SUS system usability scale and the NASA cognitive load scale. The SUS system usability scale mainly measures the user’s satisfaction with the layout design of the form, and the questions in the scale reflect the user’s satisfaction with the convenience of using the form, the usability of the form, and the ease of learning, and the scores obtained by the SUS are the satisfaction with the form. NASA Cognitive Load Scale The NASA Cognitive Load Scale has 6 dimensions to measure the cognitive load of users, and the weights of the 6 dimensions are calculated to determine the cognitive load of users when using the form.
Selection of eye movement indicators
According to the above dynamic form layout design evaluation indexes and analysis of the cognitive characteristics of each layout, and then combined with the eye movement indexes involved in previous research on the layout design, the total gaze time, the number of gaze points, and the number of eye jumps are selected as the layout evaluation indexes.
Eye movement data analysis
Using SPSS statistical software, the eye movement data were analysed for the existence of significance between subject one-way ANOVA layout [22], and then further two-by-two paired post hoc tests were performed according to the multiple comparisons table and the chiset table.
The results of the eye movement data analysis are shown in Figure 5, where E, F, and T denote the number of eye jumps, the number of gaze points, and the total gaze time, respectively, and the box denotes the range of variation of the mean within 1 standard deviation, with the whisker line being the maximum value of the data, and the box is the mean value of the data. On total gaze time, there was a significant main effect of layout mode, P=0.00<0.05, with an effect size of η2=0.57, and the mean M for filling out Layout C was 48.87s, which made completing the form significantly more efficient than those who filled out Layout A (M=68.89s) and Layout B (M=66.67s). In terms of the number of gaze points, the layout approach main effect was also significant, P=0.00<0.05, η2=0.48, with those who completed Layout C (M=38.38) having significantly fewer gaze points than those who completed Layout A (M=69.92) and those who completed Layout B (M=82.12). In terms of the number of eye skips, there was a significant main effect of layout mode, P=0.00<0.05, η2=0.36, and those who filled out Layout C (M=20.75) had significantly fewer eye skips than those who filled out Layout A (M=43.11) and Layout B (M=63.61). From the eye movement data, it can be analysed that Layout C > Layout A > Layout B, because Layout C, i.e., drag-and-drop dynamic form, can give the user a certain degree of autonomy, which enables the user to reach the target area by dragging and dropping in a shorter period, and saves the user’s time with their eyes and time for filling out the form.

Eye tracking data
Satisfaction analysis
The questionnaires that were collected were tested for reliability, and the Clonbach coefficient was 0.92 for further analysis. The results of satisfaction, usability and ease of learning scores are shown in Figure 6. In terms of satisfaction, usability and ease of learning, Layout C > Layout A > Layout, where the layout difference scores for usability and ease of learning are more obvious. In terms of the overall score, Layout C has an operational satisfaction score of 80.26, which is significantly higher compared to Layout A (60.03) and Layout B (50.89). The usability and ease of learning scores of Layout C are 82.48 and 75.57, respectively, which are significantly higher than those of Layout A and Layout B. The results of Layout C are shown in the table below. It indicates that dynamic forms designed using the drag-and-drop method are more able to meet users’ needs and gain popularity with higher usability and ease of learning.
Cognitive load analysis
Figure 7 shows the cognitive load comparison of the three layouts. The mean line in the figure indicates the standard cognitive load mean value, and the shaded part shows the fluctuation range of the mean value within 1 standard deviation. From the data analysis in the figure, it is easy to know that the mean values of the three layouts, A, B and C, are 66.85, 36.42 and 53.80, respectively, while the standard cognitive load mean value is 52.50, so the drag-and-drop dynamic form layout designed in this paper is closer to the standard cognitive load mean value. The reason is that the drag-and-drop layout allows users to play themselves to a certain extent, so when using the dynamic form, users can retain a certain degree of self-thinking, which will reduce the cognitive load of users and enhance the user’s experience when operating the form.

Scale score

Cognitive load degree mean
The interface of the dynamic form drag-and-drop function studied and implemented in this paper is shown in Fig. 8, which adopts a raster layout with a component panel on the left and a form design panel on the right. In drag-and-drop, you can drag the raster layout component into the layout field and then place the container field in the layout field. This drag-and-drop feature can effectively increase the autonomy of users in form design, allowing them to design the form according to their preferences.

Drag display
By using the B/S architecture to design dynamic forms and display their effects on the page. It is mainly divided into the background setting dynamic form and the preview of the dynamic form in the foreground.
The background setting dynamic form interface is shown in Figure 9. Take the genetic characteristics attribute as an example to set the attribute dynamically, which includes field code, field data type, unit of measure category, entry non-empty, reference code table, field display style, field said category and so on. The most important aspects are setting the reference code table and the display style for fields. The corresponding record group in the reference code table and the setting of the field display style will determine whether the multiple or one values mapped from the reference code table are represented on the page in the specified style.

The background Settings the dynamic form interface
Dynamic preview of the foreground when all the attributes are set up, the user can browse the effect of the settings through the browse chart, and at any time, you can modify the field and other operations.
This paper is based on B/S architecture to design dynamic forms with intelligent features. Drag-and- drop components have been added to the form design to create the drag-and-drop layout of the dynamic form, optimizing the user experience during the operation process. When the subjects use the drag-and-drop dynamic form designed in this paper, the mean values of the total gaze time, the number of gaze points, and the number of eye jumps are 48.87, 38.28, and 20.75, respectively, whereas the mean values of the waterfall layout are 68.89, 69.92, and 43.11, respectively, and the mean values of the distributed layout are 66.67, 82.12, and 63.61, respectively. Overall, the drag-and- drop layout of this paper is a good choice. Overall, the drag-and-drop layout in this paper is significantly better than the waterfall form layout and distributed layout, which brings a better user experience to the subjects.
Meanwhile, subjects’ satisfaction with the drag-and-drop layout is 80.26, which is 17.80% and 31.44% higher than the waterfall layout and distributed layout, respectively, and drag-and-drop layout’s usability and ease-of-learning scores are significantly higher than the other two layouts. The drag- and-drop layout had a lower cognitive load than the other two layouts, and the subjects were closer to the standard cognitive load mean. The drag-and-drop layout provides users with a certain degree of autonomy, which can enhance their cognition in the process of doing. It shows that the dynamic drag-and-drop form designed in this paper can better highlight intelligent and convenient features.