Form configuration methods and devices, electronic devices, storage media
By using dynamic personalized configuration and conditional response mechanisms, the problem of rigid form configuration mechanisms has been solved, improving the efficiency and accuracy of form filling, achieving adaptive form configuration, and ensuring data standardization and reliability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CAXA TECH
- Filing Date
- 2026-02-02
- Publication Date
- 2026-06-02
AI Technical Summary
The existing form configuration mechanism is too rigid, resulting in low filling efficiency and a high data error rate, which in turn affects the quality of form filling.
By responding to the access requests of target users, a pre-configured global form structure is loaded and dynamically adjusted based on personalized form configuration information to generate a target form structure that meets the user's needs. User operation information is received in real time and related fields are updated. Combined with a list of disabled values and default value management, data accuracy is ensured.
It achieves adaptive form configuration, improves filling efficiency and data accuracy, reduces human intervention and input errors, and ensures the standardization and reliability of form data.
Smart Images

Figure CN122133623A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of software engineering and user interface design technology, and more specifically, to a form configuration method and apparatus, an electronic device, and a storage medium. Background Technology
[0002] In today's information society, enterprise office work and business processes increasingly rely on digital platforms. Forms, as an effective tool for collecting, organizing, and validating data, are undeniably important. Traditional form configuration mechanisms, within a unified attribute management system framework, often appear too fixed and inflexible. This rigidity manifests in several ways: most form components, such as input boxes and time boxes, only support manual input and cannot preset optional values; even those components that can preset optional values (such as dropdowns and radio buttons) have relatively simple option settings, unable to dynamically adjust according to different conditions, let alone offer personalized configuration. Furthermore, existing form configuration schemes struggle to effectively handle changes or additions to attribute values, requiring users to frequently manually adjust them during form completion. This not only reduces efficiency but also increases the risk of data errors due to the uncertainty of manual input, thus affecting the quality of form data and the accuracy of subsequent business decisions. Especially in complex business scenarios, an object may be associated with multiple forms, and each form's field configuration should ideally share the optional value rules of the object's attributes. However, traditional configuration methods fail to achieve this, resulting in wasted resources and difficulty in ensuring data consistency and collaboration.
[0003] In summary, the relevant technologies suffer from a rigid form configuration mechanism, which leads to low filling efficiency and a high data error rate, resulting in low form filling quality.
[0004] There is currently no effective solution to the above problems. Summary of the Invention
[0005] This invention provides a form configuration method, apparatus, electronic device, and storage medium to at least solve the technical problem in the related art where the form configuration mechanism is too rigid, resulting in low filling efficiency and a high data error rate, which in turn leads to low form filling quality.
[0006] According to one aspect of the present invention, a form configuration method is provided, comprising: responding to a target user's access request to a form page; loading a pre-configured global form structure according to the access request; and retrieving personalized form configuration information associated with the target user; adjusting the global form structure based on the personalized form configuration information to obtain a target form structure that meets the target user's needs; and displaying the target form structure to an interactive interface; receiving operation information from the target user on the target form structure through the interactive interface; and updating associated fields in the target form structure according to the operation information to obtain a target form.
[0007] Further, the step of adjusting the global form structure based on the personalized form configuration information to obtain a target form structure that meets the needs of the target user includes: determining N target fields to be updated in the global form structure and configuration information for each target field, wherein the configuration information includes: at least one field attribute, a list of optional values, a default value identifier, and a disabled value identifier corresponding to each field attribute, and N is a positive integer; comparing the configuration information corresponding to the global form structure with the personalized form configuration information to obtain M difference fields with configuration differences, where M is an integer; for each difference field, replacing the configuration information corresponding to the global form structure with the personalized form configuration information corresponding to the difference field to obtain the target form structure that meets the needs of the target user.
[0008] Further, the step of receiving the target user's operation information on the target form structure through the interactive interface includes: listening to target user operation events on the interactive interface, wherein the target user operation events include at least: field selection events, data input events, and information deletion events; parsing the target user operation events to obtain the target user's operation information on the target form structure, wherein the operation information includes: operation type and operation content.
[0009] Further, the step of updating the associated fields in the target form structure according to the operation information to obtain the target form includes: determining the target fields in the target form structure associated with the operation information, obtaining the associated fields, and acquiring a list of optional values for each associated field; for each associated field, generating a display condition expression for each associated field according to the operation information, wherein the display condition expression includes: condition attributes, condition attribute values, and relational operators; determining a target value that meets the needs of the target user in the list of optional values according to the display condition expression, and filling the associated field with the target value; and determining the target form that meets the needs of the target user when all the associated fields corresponding to the operation information have been filled.
[0010] Furthermore, in the absence of receiving any operation information from the target user regarding the target form structure, the form configuration method further includes: parsing the default value list in the personalized form configuration information; and updating the associated fields in the target form structure one by one according to each default value in the default value list to obtain the target form.
[0011] Furthermore, before updating the associated fields in the target form structure according to the operation information, the form configuration method further includes: parsing the list of disabled values in the personalized form configuration information; checking whether the list of disabled values contains the operation value in the operation information, and obtaining the check result.
[0012] Furthermore, before updating the associated fields in the target form structure according to the operation information, the form configuration method further includes: updating the associated fields in the target form structure when the check result indicates that the list of disabled values does not contain any operation value; or, when the check result indicates that the list of disabled values contains any operation value, prohibiting the updating of the associated field corresponding to the operation value and displaying a warning message to the interactive interface.
[0013] According to another aspect of the present invention, a form configuration apparatus is also provided, comprising: a loading unit, configured to respond to a target user's access request to a form page, load a pre-configured global form structure according to the access request, and retrieve personalized form configuration information associated with the target user; an adjustment unit, configured to adjust the global form structure based on the personalized form configuration information to obtain a target form structure that meets the target user's needs, and display the target form structure on an interactive interface; and an updating unit, configured to receive operation information from the target user on the target form structure through the interactive interface, and update the associated fields in the target form structure according to the operation information to obtain the target form.
[0014] Further, the adjustment unit includes: a first determining module, used to determine N target fields to be updated in the global form structure and configuration information for each target field, wherein the configuration information includes: at least one field attribute, a list of optional values, a default value identifier, and a disabled value identifier corresponding to each field attribute, and N is a positive integer; a comparison module, used to compare the configuration information corresponding to the global form structure with the personalized form configuration information to obtain M difference fields with configuration differences, wherein M is an integer; and a replacement module, used to replace the configuration information corresponding to the global form structure with the personalized form configuration information corresponding to each difference field to obtain the target form structure that meets the needs of the target user.
[0015] Furthermore, the update unit includes: a listening module, used to listen to target user operation events on the interactive interface, wherein the target user operation events include at least: field selection events, data input events, and information deletion events; and a first parsing module, used to parse the target user operation events to obtain the target user's operation information on the target form structure, wherein the operation information includes: operation type and operation content.
[0016] Furthermore, the updating unit further includes: a second determining module, configured to determine the target field in the target form structure associated with the operation information, obtain the associated field, and acquire a list of optional values for each associated field; a generating module, configured to generate a display condition expression for each associated field based on the operation information, wherein the display condition expression includes: condition attributes, condition attribute values, and relational operators; a third determining module, configured to determine a target value that meets the needs of the target user based on the display condition expression in the list of optional values, and fill the associated field with the target value; and a fourth determining module, configured to determine the target form that meets the needs of the target user when all the associated fields corresponding to the operation information have been filled.
[0017] Furthermore, the form configuration device further includes: a second parsing module, used to parse the list of default values in the personalized form configuration information without receiving any operation information from the target user on the target form structure; and a first update module, used to update the associated fields in the target form structure one by one according to each default value in the list of default values, to obtain the target form.
[0018] Furthermore, the form configuration device further includes: a third parsing module, used to parse the list of disabled values in the personalized form configuration information before updating the associated fields in the target form structure according to the operation information; and a checking module, used to check whether the list of disabled values contains the operation value in the operation information, and obtain a check result.
[0019] Furthermore, the form configuration device further includes: a second update module, configured to update the associated field in the target form structure before updating the associated field in the target form structure according to the operation information, provided that the check result indicates that the list of disabled values does not contain any operation value; and a prohibition module, configured to prohibit updating the associated field corresponding to the operation value and display a warning message to the interactive interface when the check result indicates that the list of disabled values contains any operation value.
[0020] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform the form configuration method described in any one of the above embodiments.
[0021] According to another aspect of the present invention, an electronic device is also provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the form configuration method described in any of the preceding embodiments.
[0022] According to another aspect of the present invention, a computer program product is also provided, including computer instructions, wherein the computer instructions, when executed by a processor, implement the steps of the form configuration method described in any one of the preceding embodiments.
[0023] This invention proposes a form configuration method. First, it responds to the target user's access request for the form page, loads a pre-configured global form structure according to the access request, retrieves the personalized form configuration information associated with the target user, then adjusts the global form structure based on the personalized form configuration information to obtain a target form structure that meets the target user's needs, and displays the target form structure on the interactive interface. Finally, it receives the target user's operation information on the target form structure through the interactive interface, and updates the associated fields in the target form structure according to the operation information to obtain the target form.
[0024] This invention employs a dynamic personalized configuration integration approach, utilizing intelligent analysis and conditional responses to improve the efficiency and accuracy of form completion. This achieves adaptive form configuration optimization, resolving the problem of rigid form configuration mechanisms in related technologies that lead to low completion efficiency, high data error rates, and consequently, low form completion quality. Specifically, in scenarios with highly customized form completion requirements, this invention introduces user-level personalized configurations on top of the system's pre-set global form framework. When a target user accesses the form page, the system not only quickly loads the basic global form structure but also retrieves associated personalized configuration information in real time, achieving seamless integration between global and personalized configurations. This ensures that the setting of optional values, the filling of default values, and the identification of disabled values all align with the user's actual needs, reducing human intervention and data entry errors, significantly improving data processing speed and quality. Furthermore, the system can dynamically adjust associated fields based on user operation information through intelligent analysis, automating and intelligently completing form completion, greatly improving work efficiency, reducing repetitive work and potential input errors, and ensuring the standardization and reliability of form data. Attached Figure Description
[0025] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0026] Figure 1 This is a flowchart of an optional form configuration method according to an embodiment of the present invention;
[0027] Figure 2 This is a schematic diagram of an optional form structure according to an embodiment of the present invention;
[0028] Figure 3 This is a schematic diagram of an optional value display condition setting according to an embodiment of the present invention;
[0029] Figure 4 This is a schematic diagram of an optional form configuration device according to an embodiment of the present invention;
[0030] Figure 5 This is a structural block diagram of an electronic device for performing a form configuration method according to an embodiment of the present invention. Detailed Implementation
[0031] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0032] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0033] The following embodiments of the present invention can be applied to various systems / applications / devices that require efficient data collection and precise business process control, enabling condition-driven form configuration and autofill systems. The present invention uses an attribute-driven rule engine to dynamically configure optional values for form fields, and then combines this with user-personalized configurations for form display and data validation. This better adapts to different user needs and improves the accuracy and efficiency of data input.
[0034] In practical implementation, this invention first allows administrators to set a series of optional values, default values, and disabled values for object attributes within the system through a global configuration interface for optional value rules, ensuring that the optional values of form components conform to the attribute type specifications. Subsequently, when a user accesses the form, personalized configurations are dynamically loaded, the global configuration is compared with the personal configuration, and a customized form interface is displayed to the user. Next, when the user performs operations on the form, the operation content is parsed in real time to generate display condition expressions, and the optional values and default values of related fields are updated based on these expressions. Finally, improper input is prevented and timely feedback is provided through the check of the disabled value list to ensure the quality of form data.
[0035] This invention, through the integrated application of condition-driven optional value management and personalized configuration, not only significantly improves the user experience of form filling and reduces the risk of errors caused by manual input, but also provides differentiated services for different business scenarios and user groups, promoting data standardization and business process automation.
[0036] The present invention will now be described in detail with reference to various embodiments.
[0037] Example 1
[0038] According to an embodiment of the present invention, a form configuration method embodiment is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0039] The implementing entity of this invention can be an intelligent form management system, which combines attribute-driven optional value configuration technology for enterprise-level data collection and business process management scenarios. In particular, it addresses the problems of low form filling efficiency and high data error rate by using dynamic personalized configuration integration and condition response mechanisms. Specifically, it involves loading the global form structure, personalizing adjustments, parsing operation information, and updating related fields to improve the accuracy and efficiency of form filling.
[0040] The embodiments of the present invention will now be described in detail with reference to the specific implementation steps.
[0041] Figure 1 This is a flowchart of an optional form configuration method according to an embodiment of the present invention, such as... Figure 1 As shown, the method includes the following steps:
[0042] Step S101: Respond to the target user's access request to the form page, load the pre-configured global form structure according to the access request, and retrieve the personalized form configuration information associated with the target user.
[0043] Optionally, step S101 involves the response mechanism for form page access requests and the processing of global and personalized configurations. When a target user attempts to access a form, the implementation system first parses the user's request, involving a series of pre-processing operations such as authentication and permission checks to ensure the user has the right to access the corresponding form page. Once confirmed, the implementation system initiates the loading process of the global form structure. The global form structure refers to the initial form layout and structure, unaffected by specific users, containing all necessary fields, component types, and basic configurations, such as field names, labels, and placeholder text. However, to meet the needs of different users, the implementation system can also retrieve personalized form configuration information associated with the target user, including but not limited to adjusting field order, hiding or showing fields, preset optional values for specific components, and default value filling strategies. This allows for customized adjustments based on the global form structure, ultimately presenting the user with a form page that conforms to standard specifications while matching individual work habits and business needs.
[0044] Step S102: Adjust the global form structure based on the personalized form configuration information to obtain the target form structure that meets the needs of the target user, and display the target form structure on the interactive interface.
[0045] Alternatively, the above steps, combined with personalized form configuration information, dynamically adjust the global form structure to adapt to the specific needs of different target users. This process is essentially a personalized customization and real-time rendering mechanism for the form structure, built upon the personalized configuration information retrieved in step S101. It aims to optimize the user interface, making it more aligned with users' work habits, permissions, and business processes. Specifically, the implementation system can adjust the presentation of the global form based on details in the personalized form configuration, such as customized field sorting, displaying or hiding specific fields, and modifying optional and default values for different attributes. For example, if a user frequently handles sales-related transactions, the implementation system will prioritize displaying sales-related fields, while less frequently used fields such as purchasing fields may be hidden or placed at the end of the form, thereby improving the user's filling speed and reducing unnecessary operations. Furthermore, the implementation system can adjust the status of editable and read-only fields based on user permissions to ensure data security and compliance.
[0046] Further, the step of adjusting the global form structure based on personalized form configuration information to obtain a target form structure that meets the needs of the target user includes: determining N target fields to be updated in the global form structure and the configuration information of each target field, wherein the configuration information includes: at least one field attribute, a list of possible values, a default value identifier, and a disabled value identifier for each field attribute, and N is a positive integer; comparing the configuration information corresponding to the global form structure with the personalized form configuration information to obtain M difference fields with configuration differences, where M is an integer; for each difference field, replacing the configuration information corresponding to the global form structure with the personalized form configuration information corresponding to the difference field to obtain a target form structure that meets the needs of the target user.
[0047] It's important to note that adjusting the global form structure based on personalized form configuration information is essentially a rapid response to and implementation of user-specific needs. First, the implementation system needs to identify and determine which fields (N target fields) in the global form structure are associated with the user's specific personalized configuration information. These fields can include user roles, process nodes, and specific attributes. For each target field, the implementation system first loads its configuration information, including field attributes (such as type, identifier, etc.), as well as the list of possible values, default value identifier, and disabled value identifier for that field. These are all crucial elements for personalized form configuration.
[0048] Next, the implementation system compares the field configuration information in the global form structure with the personalized form configuration information of the target user to identify the fields with configuration differences, i.e., M differing fields. These differing fields may have different lists of optional values, default values or disabled value settings, or modifications to field attributes, such as the order of fields, their hidden or shown status, etc. For the M identified differing fields, the implementation system uses the personalized form configuration information corresponding to each differing field to overwrite or replace the original global configuration information, ensuring that the form structure finally displayed to the target user fully meets their personalized needs, including the layout of fields, the setting of optional values, and the adjustment of default and disabled values. Throughout the entire process, the implementation system not only handles personalized configurations at the field level but also considers the relationships and conditional dependencies between fields. For each differing field update, the system can also recalculate the optional or default values of other fields associated with it, ensuring the consistency and integrity of the form logic.
[0049] Figure 2 This is a schematic diagram of an optional form structure according to an embodiment of the present invention, such as... Figure 2 As shown, the form structure contains Object 1 and Object 2. Object 1 has pre-set attributes 11 and 12, and Object 3 has pre-set attributes 21 and 22. Taking attribute 11 of Object 1 as an example, the list of optional values can be set to optional value 1, optional value 2, optional value 3, and optional value 4. Optional value 2 is already set as the default value, used to automatically fill the field when the user does not select a specific value. In this list of optional values, the default value 2 can be manually set to cancel the default, and other optional values can also be manually set as new defaults. In addition to the list of optional values, a list of disabled values can also be displayed, containing the pre-set manually disabled values 1 and 2. An error message is displayed when the user manually enters a value that hits the list of disabled values.
[0050] Through the above steps, the system of this invention achieves a highly personalized and logically consistent form filling experience. By dynamically adjusting the form structure and field configuration, it meets the specific needs of different target users in different business scenarios, thereby improving the accuracy and efficiency of data filling. This not only significantly reduces user confusion and errors during the form filling process, but also promotes the standardization of internal enterprise data and the automation of processes, ultimately improving enterprise efficiency and customer satisfaction.
[0051] Step S103: Receive the target user's operation information on the target form structure through the interactive interface, and update the associated fields in the target form structure according to the operation information to obtain the target form.
[0052] The core of the above steps is to receive user operation information during the interaction between the target user and the form, and dynamically update the related fields in the form based on this information to reflect the user's selections and inputs in real time, ensuring the consistency and logical coherence of form completion. Specifically, this implementation system has powerful event listening and response capabilities, capable of capturing every user operation on the form, such as selection, input, and deletion, and using a preset rule engine to analyze the meaning of these operations in real time, identifying which fields are interrelated and how these related fields should respond to the user's current operation.
[0053] For example, suppose a product order form has two fields: "Product Category" and "Specific Product." When a user selects "Office Supplies" in the "Product Category" field, the system immediately updates the list of available options in the "Specific Product" field to include those related to office supplies, rather than maintaining the original list of all products. This involves conditional linkage between fields and real-time data updates. Furthermore, if the user enters a value in the "Quantity" field, the system also needs to dynamically calculate the total price based on that value and automatically populate the "Total Price" field, ensuring data consistency and the timeliness of the calculation.
[0054] At the technical implementation level, a front-end and back-end collaborative architecture is adopted. The front-end is responsible for capturing user operations and sending them to the back-end, while the back-end needs to have the ability to quickly process rules, call relevant databases or external services to obtain data, and have a mechanism to return the updated form interface display logic. This interactive design with high real-time requirements helps to improve user experience and the accuracy of data entry.
[0055] Furthermore, the step of receiving the target user's operation information on the target form structure through the interactive interface includes: listening to the target user's operation events on the interactive interface, wherein the target user's operation events include at least: field selection events, data input events, and information deletion events; parsing the target user's operation events to obtain the target user's operation information on the target form structure, wherein the operation information includes: operation type and operation content.
[0056] In one optional embodiment, listening to target user action events on the interactive interface is fundamental to user-system interaction and is key to implementing dynamic forms. The system can monitor and capture all user actions on the form interface in real time, including but not limited to field selection, data input, and information deletion. Capturing these action events relies on front-end technologies, such as JavaScript DOM event listeners, to respond to user actions like mouse clicks and keyboard input.
[0057] Once a user action event is captured, the system parses these events, extracting the action type (such as selection, input, deletion) and action content (such as the selected field name, the entered or deleted data). The action type determines the system's next response logic, while the action content provides the specific basis for the response.
[0058] For example, when a user selects a category in the "Product Category" selection box, the implementation system needs to parse this action as a "Field Selection Event" and obtain the specific category (action content) selected by the user. Subsequently, the implementation system updates the list of possible values for the "Specific Product" field based on this selection, ensuring that the options seen by the user match the selected category.
[0059] By following the steps above, an intelligent, dynamic, and personalized form filling system can be built. By responding to user operations in real time and providing personalized configurations, it offers users a smooth and accurate form filling experience while ensuring data consistency and validity. This not only significantly improves the efficiency and quality of internal data collection within enterprises but also brings revolutionary improvements to user interface design and interactive experience, making the originally tedious task of form filling easy and fast.
[0060] Further, the step of updating the associated fields in the target form structure based on the operation information to obtain the target form includes: determining the target fields in the target form structure associated with the operation information, obtaining the associated fields, and acquiring a list of optional values for each associated field; for each associated field, generating a display condition expression for each associated field based on the operation information, wherein the display condition expression includes: condition attributes, condition attribute values, and relational operators; determining the target value that meets the needs of the target user from the list of optional values based on the display condition expression, and filling the associated field with the target value; and determining the target form that meets the needs of the target user after all associated fields corresponding to the operation information have been filled.
[0061] It should be noted that updating the related fields in the target form structure based on the operation information in the above steps is essentially a conditional response mechanism. The core of this mechanism is to dynamically adjust the display status, optional value list, and default value filling of other related fields based on the user's selections or inputs in the form, so as to ensure the continuity and logical consistency of form filling.
[0062] Specifically, identifying related fields and loading the list of possible values means that when a user interacts with a field, the implementation system first needs to identify which fields are affected by this operation, i.e., determine the related fields. For example, if a user selects "Office Supplies" in the "Product Category" field, the implementation system needs to identify whether fields such as "Specific Product," "Unit Price," and "Inventory Status" are related to "Product Category." Next, the implementation system needs to load the list of possible values for these related fields, preparing to update the status of these fields based on the user's actions.
[0063] Further, display condition expressions are generated. For each associated field, a display condition expression is generated based on the user's operation information. Here, the operation information includes the user's current selection or input. The implementation system can construct an expression containing conditional attributes (such as "product category"), conditional attribute values ("office supplies"), and relational operators (such as "=") based on the operation type and content, combined with preset rules, to guide the subsequent update logic of the field.
[0064] Next, the target value is determined and the associated fields are populated. That is, based on the generated display condition expression, the target value that meets the current operation conditions is filtered from the list of possible values in the associated fields and automatically populated into the corresponding fields. For example, the "Specific Product" field only displays options related to "Office Supplies" and selects one of them by default, while the "Unit Price" field is automatically populated with the corresponding price for the "Office Supplies" category.
[0065] Once all affected related fields have been updated as required, the implementation system can perform a form consistency check to ensure that no fields requiring updates have been omitted and that the status of all fields conforms to logical and business rules. Only after confirming that everything is correct is the complete target form that meets the target user's needs considered obtained, at which point it can be presented to the user or prepared for saving the user's actions.
[0066] Figure 3 This is a schematic diagram illustrating an optional value display condition setting according to an embodiment of the present invention, such as... Figure 3 As shown, one or more properties can be selected from the current object. After selection, changes to these properties will affect the available and default values of the current property component. Display conditions mainly include conditional properties, relational operators, conditional property values, and logical operators (AND, OR).
[0067] It should be noted that the bar settings mainly include three categories: user roles (conditional attributes can be personnel roles, user groups, or specific usernames), process nodes (nodes under the process templates set in the system), and impact attributes.
[0068] Relational operators vary depending on the selected condition attribute, primarily as follows: a. User Role: equal to, not equal to; b. Process Node: equal to, not equal to; c. String Type Attribute: contain, left contain, contains again, equal to, not equal to. It should be noted that string type attributes refer to fields used to store text information, which can be any letter, number, symbol, or combination thereof. In form design, these attributes are typically used to collect information such as name, address, and product name; d. Numeric Type Attribute: greater than, less than, greater than or equal to, less than or equal to, not equal to. It should be noted that numeric type attributes are specifically used to store numerical information, which can be integers or floating-point numbers. These attributes are often used to collect quantifiable data, such as age, income, and product price; e. Time Type Attribute: greater than, less than, greater than or equal to, less than or equal to, not equal to. It should be noted that time type attributes are used to store time-related information, including date and / or timestamp. In form design, these attributes can be used to record the time of events, such as meeting dates and order receipt times. f. Lookup type attribute: equal to, not equal to. It should be noted that the Lookup type attribute is a special data attribute that references an entry in another form or database. This attribute type is very suitable for embedding a drop-down list in a form, allowing users to select a predefined option from it instead of manually entering it.
[0069] In addition, the input of conditional attribute values depends on the type of the selected conditional attribute, mainly as follows: a. User Role: Role / User selection box, supporting the selection of one or more roles, user groups, or users from the system's set roles; b. Process Node: Process Node selection box, allowing selection of one or more process nodes under the process template; c. String Type Attribute: A composite input box that can be manually entered or dropped down, supporting multiple manual entries or selection of one or more from predefined optional values; d. Numeric Type Attribute: A composite input box that can be manually entered or dropped down, supporting multiple manual entries or selection of one or more from predefined optional values; e. Time Type Attribute: A composite input box that can be selected from a time picker or dropped down, supporting multiple manual entries or selection of one or more from predefined optional values; f. Lookup Type Attribute: Selecting one or more from the system's built-in enumerated values.
[0070] The above steps dynamically adjust the display status, optional values, and default values of form fields in real time in response to user operations. This not only significantly improves the efficiency and accuracy of form filling but also ensures that each user's form is tailored to their specific needs and role permissions, thereby fundamentally improving the user experience. It also provides a more standardized and high-quality data foundation for data analysis and business decision-making.
[0071] Furthermore, in the absence of any operation information from the target user regarding the target form structure, the form configuration method also includes: parsing the list of default values in the personalized form configuration information; and updating the associated fields in the target form structure one by one according to each default value in the list of default values to obtain the target form.
[0072] In an optional extended operation, even if the target user has not performed any specific operation on the target form structure, i.e., no operation information has been generated, the implementation system can automatically parse the default value list in the personalized form configuration information and update the associated fields in the target form structure accordingly to pre-populate the form, simplifying the user's filling process. This process demonstrates the initiative and foresight of the implementation system of this invention in terms of user experience and data accuracy.
[0073] It should be noted that personalized configuration information usually includes a series of default values for a range of fields. These default values may be predefined based on user roles, organizational structures, business processes, etc. The implementation system needs to read and parse these default value lists so that these default values can be automatically applied when the user opens the form.
[0074] Optionally, each item in the default value list is iterated over, with each default value corresponding to a specific field in the target form structure. For each field with a default value, its associated fields are identified, and the values or statuses of these associated fields are populated or adjusted according to preset rules. For example, if the default value of the "Product Category" field is set to "Office Supplies," then the "Specific Product" field is automatically populated with the most commonly used product options in the office supplies category, and the default values for the "Unit Price" and "Inventory Status" fields may be preset according to the product category, thus presenting the user with a partially pre-filled form and reducing their workload.
[0075] By following the steps above, a highly intelligent, flexible, and personalized form filling system can be built. Through dynamic configuration and conditional response mechanisms, the system can automatically adjust the form structure, optional values, default values, and disabled states of fields based on the user's identity, role, context, and specific business needs. This greatly improves the efficiency of data collection while ensuring the accuracy and consistency of the data.
[0076] For example, a manufacturing company is using this form system to process purchase requisitions. When a purchasing department employee logs into the system and opens a new purchase requisition form, their role is already recognized by the system, so the "Requisitioning Department" field is automatically pre-filled as "Purchasing Department," and the default value of the "Product Category" field is set to the most recently purchased material category. Once the "Product Category" is automatically filled in, related fields such as "Specific Product," "Unit Price," and "Supplier" are also updated according to preset rules, displaying options that match the selected category. This way, employees don't need to fill in all the information from scratch; they only need to check or fine-tune the pre-filled content, greatly saving time and effort while also reducing the possibility of input errors.
[0077] Furthermore, before updating the associated fields in the target form structure based on the operation information, the form configuration method also includes: parsing the list of disabled values in the personalized form configuration information; checking whether the list of disabled values contains the operation values in the operation information, and obtaining the check results.
[0078] It's important to note that before updating the associated fields in the target form structure, a crucial pre-check is required—analyzing the list of disabled values in the personalized form configuration information and verifying whether the user-entered value exists in that list. This mechanism aims to prevent users from entering or selecting values that have been determined to be invalid or non-compliant, thereby ensuring data quality and system stability.
[0079] Specifically, the personalized form configuration information includes a list of disabled values for different fields. These disabled values may be set based on historical data anomalies, compliance requirements, or the needs of specific business scenarios. During the parsing phase, the implementation system reads and understands the list of disabled values for each associated field, preparing for subsequent operational checks.
[0080] When a user enters or selects a value in a field (the operation value), the system automatically compares it with the list of prohibited values for that field to determine if the operation value is valid. If the operation value appears in the list of prohibited values, the system will block the operation and issue a warning to the user, prompting them to select or enter a new value.
[0081] Furthermore, before updating the associated fields in the target form structure based on the operation information, the form configuration method also includes: updating the associated fields in the target form structure if the check result indicates that no operation value is included in the list of prohibited values; or, if the check result indicates that any operation value is included in the list of prohibited values, prohibiting the updating of the associated fields corresponding to that operation value and displaying a warning message to the interactive interface.
[0082] To ensure users don't accidentally input values outside the system's predefined rules, thus avoiding potential data conflicts and logical errors, after a user completes an operation in a field, the system first compares the input value with the list of prohibited values in the personalized form configuration information. It should be noted that the list of prohibited values is set by the system administrator or designer to prevent the input of certain specific values, which may be based on compliance requirements, data security considerations, or business logic restrictions.
[0083] If the operation value is not in the prohibited value list, the system will consider the operation valid and continue to update the associated field. Conversely, if the operation value matches a prohibited value, the system will block the update operation and display a warning message to the user on the interactive interface, indicating that the operation does not comply with the rules and requires re-entry or reselection.
[0084] Through the above steps S101 to S103, the system can first respond to the target user's access request for the form page, load the pre-configured global form structure according to the access request, retrieve the personalized form configuration information associated with the target user, adjust the global form structure based on the personalized form configuration information to obtain the target form structure that meets the target user's needs, and display the target form structure on the interactive interface. Finally, the system can receive the target user's operation information on the target form structure through the interactive interface, update the associated fields in the target form structure according to the operation information, and obtain the target form.
[0085] In this embodiment of the invention, a dynamic personalized configuration integration approach is adopted. Through intelligent analysis and conditional response, the efficiency and accuracy of form filling are improved, thereby achieving the technical effect of adaptive form configuration optimization. This solves the technical problem in related technologies where the form configuration mechanism is too rigid, resulting in low filling efficiency, high data error rate, and consequently low form filling quality. Specifically, when facing highly customized form filling scenarios, this invention introduces user-level personalized configurations on top of the system's preset global form framework. When each target user accesses the form page, the system can not only quickly load the basic global form structure but also retrieve its associated personalized configuration information in real time, achieving seamless integration between global and personalized configurations. This ensures that whether it's setting optional values, filling default values, or identifying disabled values, it aligns with the user's actual needs, reducing human intervention and data entry errors, and significantly improving data processing speed and quality. The system can dynamically adjust associated fields based on user operation information through intelligent analysis, achieving automation and intelligence in form filling, greatly improving work efficiency, reducing repetitive work and potential input errors, and ensuring the standardization and reliability of form data.
[0086] The invention will now be described in conjunction with another alternative embodiment.
[0087] Example 2
[0088] The form configuration device provided in this embodiment includes multiple implementation units, each of which corresponds to a specific implementation step in Embodiment 1 above.
[0089] Figure 4 This is a schematic diagram of an optional form configuration device according to an embodiment of the present invention, such as... Figure 4 As shown, the device may include: a loading unit 41, an adjustment unit 42, and an updating unit 43.
[0090] The loading unit 41 is used to respond to the target user's access request to the form page, load the pre-configured global form structure according to the access request, and retrieve the personalized form configuration information associated with the target user.
[0091] Adjustment unit 42 is used to adjust the global form structure based on personalized form configuration information to obtain a target form structure that meets the needs of the target user, and then display the target form structure on the interactive interface.
[0092] The update unit 43 is used to receive the target user's operation information on the target form structure through the interactive interface, and update the associated fields in the target form structure according to the operation information to obtain the target form.
[0093] The aforementioned form configuration device can first respond to the target user's access request for the form page through the loading unit 41, load the pre-configured global form structure according to the access request, and retrieve the personalized form configuration information associated with the target user. Then, the adjustment unit 42 adjusts the global form structure based on the personalized form configuration information to obtain a target form structure that meets the target user's needs, and displays the target form structure on the interactive interface. Finally, the update unit 43 receives the target user's operation information on the target form structure through the interactive interface, and updates the associated fields in the target form structure according to the operation information to obtain the target form.
[0094] In this embodiment of the invention, a dynamic personalized configuration integration approach is adopted. Through intelligent analysis and conditional response, the efficiency and accuracy of form filling are improved, thereby achieving the technical effect of adaptive form configuration optimization. This solves the technical problem in related technologies where the form configuration mechanism is too rigid, resulting in low filling efficiency, high data error rate, and consequently low form filling quality. Specifically, when facing highly customized form filling scenarios, this invention introduces user-level personalized configurations on top of the system's preset global form framework. When each target user accesses the form page, the system can not only quickly load the basic global form structure but also retrieve its associated personalized configuration information in real time, achieving seamless integration between global and personalized configurations. This ensures that whether it's setting optional values, filling default values, or identifying disabled values, it aligns with the user's actual needs, reducing human intervention and data entry errors, and significantly improving data processing speed and quality. The system can dynamically adjust associated fields based on user operation information through intelligent analysis, achieving automation and intelligence in form filling, greatly improving work efficiency, reducing repetitive work and potential input errors, and ensuring the standardization and reliability of form data.
[0095] Furthermore, the adjustment unit includes: a first determining module, used to determine N target fields to be updated in the global form structure and the configuration information of each target field, wherein the configuration information includes: at least one field attribute, a list of optional values, a default value identifier, and a disabled value identifier corresponding to each field attribute, and N is a positive integer; a comparison module, used to compare the configuration information corresponding to the global form structure with the personalized form configuration information to obtain M difference fields with configuration differences, wherein M is an integer; and a replacement module, used to replace the configuration information corresponding to the global form structure with the personalized form configuration information corresponding to each difference field to obtain a target form structure that meets the needs of the target user.
[0096] Furthermore, the update unit includes: a listening module for listening to target user operation events on the interactive interface, wherein the target user operation events include at least: field selection events, data input events, and information deletion events; and a first parsing module for parsing the target user operation events to obtain the target user's operation information on the target form structure, wherein the operation information includes: operation type and operation content.
[0097] Furthermore, the updating unit also includes: a second determining module, used to determine the target fields associated with the operation information in the target form structure, obtain the associated fields, and acquire a list of optional values for each associated field; a generating module, used to generate a display condition expression for each associated field based on the operation information, wherein the display condition expression includes: condition attributes, condition attribute values, and relational operators; a third determining module, used to determine the target value that meets the needs of the target user from the list of optional values based on the display condition expression, and use the target value to fill the associated field; and a fourth determining module, used to determine the target form that meets the needs of the target user when all associated fields corresponding to the operation information have been filled.
[0098] Furthermore, the form configuration device also includes: a second parsing module, used to parse the list of default values in the personalized form configuration information without receiving any operation information from the target user on the target form structure; and a first updating module, used to update the associated fields in the target form structure one by one according to each default value in the default value list, so as to obtain the target form.
[0099] Furthermore, the form configuration device also includes: a third parsing module, used to parse the list of disabled values in the personalized form configuration information before updating the associated fields in the target form structure according to the operation information; and a checking module, used to check whether the list of disabled values contains the operation value in the operation information, and obtain the check result.
[0100] Furthermore, the form configuration device also includes: a second update module, used to update the associated fields in the target form structure before updating the associated fields in the target form structure according to the operation information, provided that the check result indicates that the list of prohibited values does not contain any operation value; and a prohibition module, used to prohibit updating the associated fields corresponding to any operation value if the check result indicates that the list of prohibited values contains any operation value, and to display a warning message to the interactive interface.
[0101] The form configuration device described above may also include a processor and a memory. The loading unit 41, the adjustment unit 42, the updating unit 43, etc., are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize the corresponding functions.
[0102] The aforementioned processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and by adjusting kernel parameters, they respond to the target user's access request for the form page. Based on the access request, a pre-configured global form structure is loaded, and the personalized form configuration information associated with the target user is retrieved. The global form structure is adjusted based on the personalized form configuration information to obtain a target form structure that meets the target user's needs, and this target form structure is displayed on the interactive interface. The interactive interface receives the target user's operation information on the target form structure, and the associated fields in the target form structure are updated based on the operation information to obtain the target form.
[0103] The aforementioned memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0104] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program with the following initialization steps: responding to a target user's access request to a form page, loading a pre-configured global form structure according to the access request, and retrieving personalized form configuration information associated with the target user; adjusting the global form structure based on the personalized form configuration information to obtain a target form structure that meets the target user's needs, and displaying the target form structure to an interactive interface; receiving operation information from the target user on the target form structure through the interactive interface, and updating the associated fields in the target form structure according to the operation information to obtain the target form.
[0105] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to execute any of the form configuration methods in the first embodiment described above.
[0106] According to another aspect of the present invention, an electronic device is also provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the form configuration method of any one of the above embodiments.
[0107] Figure 5 This is a structural block diagram of an electronic device for executing a form configuration method according to an embodiment of the present invention, such as... Figure 5 As shown, the electronic device may include: one or more ( Figure 5(Only one is shown) processor 502, memory 504, memory controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.
[0108] The memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the form configuration method and apparatus in this application embodiment. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, thereby implementing the aforementioned form configuration method. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0109] Those skilled in the art will understand that Figure 5 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones, tablets, handheld computers, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 5 This does not limit the structure of the aforementioned electronic device. For example, electronic devices may also include components that are more... Figure 5 The more or fewer components shown (such as network interfaces, display devices, etc.), or having the same Figure 5 The different configurations shown.
[0110] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0111] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0112] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0113] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0114] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0115] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0116] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0117] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A form configuration method, characterized in that, include: In response to a target user's access request to a form page, a pre-configured global form structure is loaded according to the access request, and the personalized form configuration information associated with the target user is retrieved. The global form structure is adjusted based on the personalized form configuration information to obtain a target form structure that meets the needs of the target user, and the target form structure is displayed on the interactive interface. The system receives operation information from the target user on the target form structure through the interactive interface, and updates the associated fields in the target form structure according to the operation information to obtain the target form.
2. The form configuration method according to claim 1, characterized in that, The steps of adjusting the global form structure based on the personalized form configuration information to obtain a target form structure that meets the needs of the target user include: Determine N target fields to be updated in the global form structure and the configuration information of each target field, wherein the configuration information includes: at least one field attribute, a list of optional values, a default value identifier, and a disabled value identifier corresponding to each field attribute, and N is a positive integer; The configuration information corresponding to the global form structure is compared with the personalized form configuration information to obtain M difference fields with configuration differences, where M is an integer; For each of the difference fields, the configuration information corresponding to the global form structure is replaced with the personalized form configuration information corresponding to the difference field to obtain the target form structure that meets the needs of the target user.
3. The form configuration method according to claim 1, characterized in that, The step of receiving operation information of the target user on the target form structure through the interactive interface includes: Listen for target user operation events on the interactive interface, wherein the target user operation events include at least: field selection events, data input events, and information deletion events; The target user's operation events are parsed to obtain the target user's operation information on the target form structure, wherein the operation information includes: operation type and operation content.
4. The form configuration method according to claim 1, characterized in that, The steps of updating the associated fields in the target form structure according to the operation information to obtain the target form include: Determine the target field in the target form structure that is associated with the operation information, obtain the associated field, and get a list of possible values for each associated field; For each of the associated fields, a display condition expression is generated for each associated field based on the operation information, wherein the display condition expression includes: condition attribute, condition attribute value, and relational operator; Based on the display condition expression, a target value that meets the needs of the target user is determined from the list of optional values, and the target value is used to populate the associated field. Once all the associated fields corresponding to the operation information have been filled in, the target form that meets the needs of the target user is determined.
5. The form configuration method according to claim 1, characterized in that, In the absence of receiving any operation information from the target user regarding the target form structure, the form configuration method further includes: Parse the list of default values in the personalized form configuration information; Based on each default value in the default value list, the associated fields in the target form structure are updated one by one to obtain the target form.
6. The form configuration method according to claim 1, characterized in that, Before updating the associated fields in the target form structure based on the operation information, the form configuration method further includes: Parse the list of disabled values in the personalized form configuration information; Check whether the disabled value list contains the operation value in the operation information, and obtain the check result.
7. The form configuration method according to claim 6, characterized in that, Before updating the associated fields in the target form structure based on the operation information, the form configuration method further includes: If the inspection result indicates that no operation value is included in the list of disabled values, update the associated field in the target form structure; or... If the inspection result indicates that any operation value is included in the list of disabled values, updating the associated field corresponding to that operation value is prohibited, and a warning message is displayed to the interactive interface.
8. A form configuration device, characterized in that, include: The loading unit is used to respond to the target user's access request to the form page, load the pre-configured global form structure according to the access request, and retrieve the personalized form configuration information associated with the target user. The adjustment unit is used to adjust the global form structure based on the personalized form configuration information to obtain a target form structure that meets the needs of the target user, and to display the target form structure on the interactive interface; The update unit is used to receive operation information of the target user on the target form structure through the interactive interface, and update the associated fields in the target form structure according to the operation information to obtain the target form.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device on which the computer-readable storage medium is located to perform the form configuration method according to any one of claims 1 to 7.
10. An electronic device, characterized in that, It includes one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the form configuration method according to any one of claims 1 to 7.