Form application creation method and system based on question and answer mode

Through the question-and-answer form application creation method, the problem of low efficiency and difficulty in form development in the existing technology is solved, efficient and accurate form application creation is achieved, users' learning costs and memory burden are reduced, and enterprises are provided with convenience for informatization.

CN120068808APending Publication Date: 2025-05-30JIANGNAN SHIPYARD (GRP) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510114163.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-24
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

The existing technology is inefficient and difficult in form development, resulting in limited development of enterprise information-based digital transformation and development, and it is difficult to achieve smooth work connection and efficient management of employees.

Method used

The question-and-answer form application creation method is adopted, and multiple steps include creating a form structure, improving form item fields, rendering multiple times to generate form pages and setting data operation information to form an efficient form application creation process.

Benefits of technology

It improves the efficiency of form development, reduces the difficulty of development, ensures the integrity of form content and the correctness of attribute configuration, reduces the learning threshold and memory burden of users, and provides convenience for the corporate management of large-scale shipbuilding companies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120068808A_ABST
    Figure CN120068808A_ABST
Patent Text Reader

Abstract

The invention provides a form application creation method and system based on a question and answer mode, and the method comprises the steps: S100, creating a form structure with a plurality of form items, setting a header of a form as a'form item description character 'field, distributing a'form item unique identifier' of the form by a system, and defaulting that other form item fields of the form are empty, subsequent question and answer links are sequentially improved; s200, sequentially perfecting other form item fields of the form through a question and answer link to obtain a form file with perfected attributes and configuration; s300, rendering the form page for multiple times and generating a form page; and S400, after form data operation information is set, forming a form application and issuing the form application. According to the form application creation method and system provided by the invention, the integrity of form contents and the correctness of attribute configuration can be effectively ensured, the learning cost is low, the memory burden of a user is effectively reduced, and great convenience is brought to enterprise management of large-scale shipbuilding enterprises.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the technical field of ships, and particularly relates to a method and system for creating a form application based on a question-and-answer format. Background Art

[0002] Forms play an important role in the informatization of ship enterprises. They are important tools for enterprise information management, capable of helping enterprises achieve standardized collection and entry of data, and ensuring the compliance of business processes. Through forms, enterprises can implement many automated office processes (such as employee onboarding, leave, and reimbursement), thereby improving office efficiency and reducing human errors. In addition, the informatization and mobilization of forms also contribute to enhancing the user operation experience and reducing enterprise operation costs. For large-scale shipbuilding enterprises, it is particularly important to monitor and manage employee information and information changes at each level. Form development is an important task for informatization developers, and it is necessary to provide an efficient, convenient, and accurate method for creating form applications. Summary of the Invention

[0003] In view of the above-mentioned disadvantages of the prior art, the purpose of this application is to provide a method and system for creating a form application based on a question-and-answer format, so as to improve form development efficiency, reduce form development difficulty, promote the transformation and development of enterprise informatization and digitalization, and facilitate the smooth docking and efficient management of employees' work.

[0004] In the first aspect, this application provides a method for creating a form application based on a question-and-answer format, which at least includes the following steps:

[0005] S100: Create a form structure with multiple form items, where the form header is set as the "form item description text" field, the "unique form item identifier" of the form is assigned by the system, and the remaining form item fields of the form are defaulted to empty and are sequentially completed through subsequent question-and-answer sessions;

[0006] S200: Based on the form structure obtained in step S100, sequentially complete the remaining form item fields of the form through a question-and-answer session to obtain a form file with complete attributes and configurations;

[0007] S300: Based on the form file obtained in step S200, render it multiple times and generate a form page;

[0008] S400: Based on the form page generated in step S300, set form data operation information and then form a form application and publish it.

[0009] In an optional implementation manner, in step S100, the method for creating the form structure includes reusing the form structure of a published form to generate a form structure, or generating a form structure according to an interface document.

[0010] In an alternative embodiment, step S200 includes:

[0011] S21: Confirm the form type of the form item;

[0012] S22: Based on the form item type confirmed in step S21, continue to improve the form item configuration through a dialogue, and return the user to the configuration of the form item to confirm the personalized attributes and configuration of the form item;

[0013] S23: If the form type is user selection type, perform the data source operation of confirming the form item; otherwise, do not perform the operation;

[0014] S24: Confirm whether the field of the form item is a required item;

[0015] S25: Confirm the verification rules of the form item, or add multiple verification rules until the user actively exits;

[0016] S26: Repeat steps S21 to S25 until the attributes and configurations of all form items are generated, and a form file with complete attributes and configurations is obtained.

[0017] In an alternative embodiment, in step S21,

[0018] The form types include user input type and user selection type according to different input forms;

[0019] The user input type includes a single-line text input box and a multi-line text input box; the user selection type includes single selection, multiple selection, and drop-down selection.

[0020] In an alternative embodiment, the data source of the form item includes user-defined, obtained through a network protocol interface, or imported through a formatted file; when the user selects to import the data source through a network protocol interface, the parameters of the interface and the return value formatting function are continued to be set.

[0021] In an alternative embodiment, the verification rules include regular expression verification, form item association verification, and asynchronous function verification.

[0022] In an alternative embodiment, step S300 includes:

[0023] S31: Generate a preview page for the form file;

[0024] S32: Perform one or more of steps S21 to S25 on the form items that do not meet the business requirements in the generated preview page until the business requirements are met;

[0025] S33: Adjust the overall style of the form file;

[0026] S34: Generate the final form page.

[0027] In an alternative embodiment, step S400 includes:

[0028] S41: Set form data operation information to improve form management information. The form data operation information includes a data submission network protocol interface address, a data query network protocol interface address, a data export network protocol interface address, and an enable / disable operation network protocol interface address;

[0029] S42: Import the form configuration file into the database to support the form structure in step S100 and configure the reuse function. At the same time, register and publish the form application in the system;

[0030] S43: Generate an access address for the form page.

[0031] In an alternative embodiment, the form application further includes operations such as form disabling, form enabling, data query and export, and viewing report analysis through the management page.

[0032] In a second aspect, the present application provides a question-and-answer-based form application creation system, including:

[0033] Basic information management module: used to maintain and manage system basic information;

[0034] Form attribute and configuration information maintenance module: used to create and maintain the general attributes and configurations of form items and the personalized attributes and configurations of different form items;

[0035] Form creation module: used to implement the functions of form application creation, configuration file generation, form preview, and publishing;

[0036] Form management module: used to implement functions such as form application enabling and disabling, data query and export, and report analysis.

[0037] Compared with the prior art, the technical solution provided by the present application has the following beneficial effects:

[0038] The technical solution provided by the present application is based on a question-and-answer-based form creation process, which can effectively ensure the integrity of form content and the correctness of attribute configuration, reduce the probability of user rework, and improve work quality; it can be quickly mastered without professional training, and the learning cost is extremely low; there is no need for users to remember complex form attributes and configurations, which effectively reduces the memory burden of users and brings great convenience to the enterprise management of large-scale shipbuilding enterprises. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It shows a step diagram of the question-and-answer-based form application creation method provided by the present application;

[0040] Figure 2Shown as a schematic diagram of the single form item attribute and the configuration Q&A process;

[0041] Figure 3 Shown as a system diagram of the form application creation based on Q&A provided by this application. Detailed implementation manners

[0042] In the prior art, the common form development solutions mainly include full-code development and low-code development. Full-code development has full control over each detail of the form, with good code flexibility and high customization degree, but low development efficiency and high development cost; Low-code development is a popular form development solution in recent years. It allows developers to create applications through a graphical interface and model-driven logic without writing a large amount of code. Mainstream low-code platforms such as Jiandaoyun, Yida, Weida, etc. usually adopt the method of "drag and drop" + building blocks for form design and editing. This development method simplifies the traditional coding process and enables non-developers to quickly create form applications. However, due to the large number of form components and significant configuration differences, even using the "drag and drop" method still poses problems for users such as high learning threshold, complex operation, and heavy memory burden. Unless through specialized training and long-term practice, users can efficiently and qualitatively complete the design and creation of form applications.

[0043] Aiming at the problems existing in the above low-code platforms, this application proposes a method and system for creating form applications based on Q&A. It aims to help users quickly create form applications through a dialogue form, thereby reducing the learning threshold and memory burden of users and achieving the efficient and qualitative design and creation of form applications.

[0044] The following uses specific specific examples to illustrate the implementation manners of this application. Those skilled in the art can easily understand other advantages and principles of this application from the content disclosed in this specification. This application can also be implemented or applied through other different specific implementation manners. Various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this application.

[0045] It should be noted that the structures, proportions, sizes, etc. shown in the drawings of this specification are only used to cooperate with the content disclosed in the specification for those familiar with this technology to understand and read, and are not used to limit the limiting conditions for the implementation of this patent. Therefore, they do not have substantial technical significance. Any modification of the structure, change of the proportional relationship, or adjustment of the size, without affecting the effects that this patent can produce and the purposes that can be achieved, should still fall within the scope covered by the technical content disclosed in this patent. At the same time, the terms such as "upper", "lower", "left", "right", "middle", etc. cited in this specification are only for the convenience of clear narration and are not used to limit the scope for the implementation of this patent. The change or adjustment of their relative relationships, without substantial change in the technical content, should also be regarded as the scope for the implementation of this patent.

[0046] This embodiment provides a method for creating a form application based on a question-and-answer form. A form page usually consists of multiple form items (input, radio) and a submit button, where different form items have different attributes and configurations. The general attributes and configuration descriptions of form items are as follows:

[0047] Type: Form type;

[0048] Id: The unique identifier of the form item;

[0049] Key: The key of the form item, used to record the data passed to the server;

[0050] Value: The value of the form item, used to record the data displayed on the page;

[0051] Label: The explanatory text of the form item;

[0052] Config: The personalized attributes and configurations of the form item;

[0053] Data: Data source;

[0054] Required: Whether it is required;

[0055] Rule: Verification rule.

[0056] The following will elaborate on this form application creation method in combination with the attached Figure 1 and Figure 2 for a detailed description.

[0057] S100: Create a form structure with multiple form items, where the form header is set to the "explanatory text of the form item" field, the "unique identifier of the form item" of the form is assigned by the system, the remaining form item fields of the form are defaulted to empty, and are sequentially completed through subsequent question-and-answer sessions.

[0058] Specifically, a form structure with multiple form items can be quickly created by importing formatted files such as Excel familiar to business personnel and CSV and JSON familiar to developers, avoiding the cumbersome operation of having users drag and set each form item one by one in the "drag-and-drop" manner. The header of the Excel file automatically becomes the Label of the form item (which can be adjusted again during subsequent preview). The Id of the form is automatically assigned by the system. The remaining form item fields of the form are defaulted to be empty and are sequentially improved through subsequent Q&A sessions. Further, if the server-side interface provides interface documentation, the form structure can be quickly generated according to the interface documentation. The method for creating a form structure provided in this application is to reuse the already published form structure to generate a form structure.

[0059] S200: Based on the form structure obtained in step S100, sequentially improve the remaining form item fields of the form through the Q&A session to obtain a form file with complete attributes and configurations. Taking the form structure with 8 form items generated in step S100 as an example, the configuration of each form item will be completed through Q&A below.

[0060] S21: Confirm the form type Type of the form item; among them, the form type includes user input type and user selection type according to different input forms; the user input type includes single-line text input box and multi-line text input box; the user selection type includes single selection, multiple selection, and drop-down selection. The specific Q&A process is as follows:

[0061] System: Please select the type of form item XXX (XXX is marked as the Label of the form item)?

[0062] User: Select the form type according to business needs.

[0063] As an example,

[0064] System: Please select the form type of the form item Name (the system automatically displays the selectable form types)?

[0065] User: User input type / Single-line text input box.

[0066] S22: Based on the form item type confirmed in step S21, continue to improve the form item configuration through the dialogue, and record the user's responses into the configuration of the form item to confirm the personalized attributes and configuration Config of the form item. In actual operation, the personalized configurations of different types of form items are different and can be adjusted according to the actual situation. If the user selects a single-line text input box, the user can be further asked about the data format (number, text, integer), length limit, etc.; if the user selects a drop-down selection, the user can be further asked whether it is a multiple selection, the minimum selectable item, and the maximum selectable item, etc.

[0067] As an example:

[0068] System: Please enter the data format of the form item (text / number / integer / …);

[0069] User: Text;

[0070] System: Please enter the character length limit (0 means no limit);

[0071] User: 0;

[0072] … (Determine whether to continue the Q&A based on the maintained form item attributes and configuration information);

[0073] S23: If the form type is user-selectable, perform the operation of confirming the data source Data of the form item; if the current form item is user-input type, this question is automatically skipped. Further, the data source of the form item includes user-defined, obtained through network protocol interfaces, or imported through formatted files; when the user selects to import the data source through a network protocol interface, continue to set the parameters of the interface and the return value formatting function.

[0074] S24: Confirm whether the field of the form item is a required item Required. The specific Q&A process is as follows:

[0075] System: Please select whether the form item XXX (XXX is the Label of the form item) is required?

[0076] User: Required / Not required.

[0077] As an example,

[0078] System: Please select whether the form item is required (Yes / No)?

[0079] User: Yes;

[0080] S25: Confirm the verification rule Rule of the form item, or add multiple verification rules until the user actively exits. Further, the verification rules include regular expression verification, form item association verification, and asynchronous function verification. Regular expression verification can build common regular expressions in the system for the convenience of users, such as email, mobile phone number, ID card number, etc.; form item association verification sets verification rules by combining the Key or Value of the previous and subsequent form items.

[0081] As an example,

[0082] System: Please select the type of verification rule for the form item (None / Regular expression / Form item association verification / Asynchronous function verification)?

[0083] User: None;

[0084] …(Decide whether to continue adding validation rules based on the user’s answer. If you have selected ‘None’ here, exit the validation rule dialog);

[0085] S26: Repeat steps S21 to S25 until the properties and configurations of all form items are generated to obtain a form file with complete properties and configurations. Specifically, the properties and configurations of the remaining 7 form items are generated, which will not be repeated here.

[0086] S300: Based on the form file obtained in step S200, render it multiple times and generate a form page. Further, by using mainstream front-end frameworks such as Vue, React, Angular and UI libraries such as Element UI, Ant Design and other tools to quickly achieve page rendering.

[0087] S31: Generate a preview page for the form file to facilitate user viewing.

[0088] S32: Execute one or more steps from step S21 to step S25 for the form items in the generated preview page that do not meet the business requirements, until the business requirements are met.

[0089] S33: Adjust the overall style of the form file, such as header image, background, font, color, etc.

[0090] S34: Generate a final form page.

[0091] S400: Based on the form page generated in step S300, form data operation information is set to form a form application and publish it.

[0092] S41: Setting form data operation information to improve form management information, the form data operation information includes a data submission network protocol interface address, a data query network protocol interface address, a data export network protocol interface address, and an enable / disable operation network protocol interface address.

[0093] S42: Import the form configuration file into the database to support the form structure of step S100 and configure the reuse function, and register and publish the form application in the system.

[0094] S43: Generate an access address for the form page, such as a QR code, poster, access link, etc. The form access address is pushed to the user who needs to fill in the form, and after the user completes the form filling, the data is viewed and managed through step S44.

[0095] S44: Use the management page to perform form deactivation operations, form activation operations, data query and export operations, and report analysis operations.

[0096] See also Figure 3, this embodiment also provides a form application creation system based on Q&A, including:

[0097] Basic information management module: used to maintain and manage the basic information of the system, such as the name, gender, age, native place, employment date, and position of employees, etc.

[0098] Form attribute and configuration information maintenance module: used to create and maintain the general attributes and configurations of form items and the personalized attributes and configurations of different form items, such as user data formats (numbers, texts, integers), length limits, etc.; whether multiple selections are allowed in the user dropdown, the minimum and maximum selectable items, etc.

[0099] Form creation module: used to implement the creation, configuration file generation, form preview, and publishing functions of the form application.

[0100] Form management module: used to implement the functions of enabling and disabling the form application, data query and export, and report analysis.

[0101] In summary, the technical solutions of the form creation method and system based on Q&A provided by this application can effectively ensure the integrity of the form content and the correctness of the attribute configuration, reduce the probability of user rework, and improve the work quality; users can quickly get started without professional training, and the learning cost is extremely low; users do not need to remember the complex form attributes and configurations, effectively reducing the memory burden of users, and bringing great convenience to the enterprise management of large-scale shipbuilding enterprises. Therefore, this application effectively overcomes various shortcomings in the prior art and has high industrial utilization value.

[0102] The above embodiments are only illustrative of the principles and effects of this application, and are not used to limit this application. Any person familiar with this technology can modify or change the above embodiments without departing from the spirit and scope of this application. Therefore, all equivalent modifications or changes completed by those with ordinary knowledge in the technical field without departing from the spirit and technical idea disclosed by this application should still be covered by the claims of this application.

Claims

1. A method for creating a form application based on question-and-answer format, characterized in that: At least the following steps are included: S100: Create a form structure with multiple form items, where the form header is set to the "Form Item Description Text" field, the form's "Form Item Unique Identifier" is assigned by the system, and the remaining form item fields of the form are empty by default, and are completed in turn through the subsequent question-and-answer session; S200: Based on the form structure obtained in step S100, the remaining form item fields of the form are completed in sequence through a question-and-answer session to obtain a form file with complete attributes and configurations; S300: Based on the form file obtained in step S200, render it multiple times and generate a form page; S400: Based on the form page generated in step S300, form data operation information is set to form a form application and publish it.

2. The method for creating a form application based on question-and-answer format according to claim 1, characterized in that: In step S100, the form structure is created by reusing an already published form structure to generate the form structure, or by generating the form structure according to an interface document.

3. The method for creating a form application based on question-answering according to claim 1, characterized in that: Step S200 includes: S21: confirm the form type of the form item; S22: Based on the form item type confirmed in step S21, the form item configuration is further improved through the dialogue, and the user is returned to the configuration recorded in the form item to confirm the personalized attributes and configuration of the form item; S23: If the form type is user selection type, then the data source operation of confirming the form item is executed; if not, then no operation is executed; S24: confirm whether the fields of the form item are required; S25: Confirm the validation rules of the form items, or add multiple validation rules until the user actively exits; S26: Repeat steps S21 to S25 until the properties and configurations of all form items are generated, and a form file with complete properties and configurations is obtained.

4. The method for creating a form application based on question-and-answer format according to claim 3, characterized in that: In step S21, Form types include user input type and user selection type according to different input forms; User input types include single-line text input boxes and multi-line text input boxes; user selection types include single selection, multiple selection and drop-down selection.

5. The method for creating a form application based on question-answering according to claim 4, characterized in that: The data source of the form item includes user customization, acquisition through the network protocol interface, or import through a formatted file; when the user chooses to import the data source through the network protocol interface, continue to set the interface parameters and return value formatting function.

6. The method for creating a form application based on question-answering according to claim 5, characterized in that: Verification rules include regular expression verification, form item association verification, and asynchronous function verification.

7. The method for creating a form application based on question-answering according to claim 3, characterized in that: Step S300 includes: S31: Generate a preview page from the form file; S32: executing one or more steps from step S21 to step S25 for the form items in the generated preview page that do not meet the business requirements until the business requirements are met; S33: Adjust the overall style of the form file; S34: Generate a final form page.

8. The method for creating a form application based on question-answering according to claim 1, characterized in that: Step S400 includes: S41: Setting form data operation information to improve form management information, the form data operation information includes a data submission network protocol interface address, a data query network protocol interface address, a data export network protocol interface address, and an enable / disable operation network protocol interface address; S42: Import the form configuration file into the database to support the form structure of step S100 and configure the reuse function, and register the form application in the system and publish it; S43: Generate an access address of the form page.

9. The method for creating a form application based on question-answering according to claim 8, characterized in that: The form application also includes form deactivation and activation operations, data query and export operations, and report analysis operations through the management page.

10. A form application creation system based on question-answering, characterized in that: include: Basic information management module: used to maintain and manage system basic information; Form attribute and configuration information maintenance module: used to create and maintain common attributes and configurations of form items as well as personalized attributes and configurations of different form items; Form creation module: used to implement form application creation, configuration file generation, form preview and publishing functions; Form management module: used to implement form application activation and deactivation, data query and export, and report analysis functions.