Form-based field display and hiding logic setting method and device, equipment and medium
By setting formula condition controls in the form's display/concealment logic settings page, users can set formula-type trigger conditions for fields. This solves the problem of limited functionality in existing form field display/concealment logic settings, enabling more flexible field display/concealment logic settings and improving user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA UNITED NETWORK COMM GRP CO LTD
- Filing Date
- 2023-07-27
- Publication Date
- 2026-07-24
AI Technical Summary
Existing technologies have relatively simple functions for setting the display logic of form fields, which are difficult to meet the diverse needs of users.
This paper provides a method for setting field display/concealment logic based on a form. By setting a formula condition setting control in the display/concealment logic setting page, users can set formula-type trigger conditions for fields, and store these conditions on the server for subsequent calls to realize the field display/concealment logic.
It improves the flexibility of setting field visibility logic, better meets the diverse needs of users, and enhances the user experience.
Smart Images

Figure CN116860844B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, device and medium for setting the field visibility logic based on a form. Background Technology
[0002] Currently, in daily work scenarios that require data entry, such as data reporting, registration, applications, and information collection, forms can be used. A form is a tool consisting of several fields used for data entry and collection.
[0003] In related technologies, display logic is set for fields in a form. When the form is subsequently displayed, the fields are shown or hidden according to the pre-defined logic. However, this method of setting field display logic is relatively limited in functionality and cannot meet the needs of users. Summary of the Invention
[0004] This application provides a method, device, equipment, and medium for setting the display and hiding logic of fields based on forms, and provides the function of setting trigger conditions for formula types, which is more flexible and can better meet the needs of users.
[0005] Firstly, this application provides a method for setting the display / concealment logic of fields based on a form, including:
[0006] In response to the triggering of the display / hide logic setting control in the form editing page corresponding to the target form, the display / hide logic setting page is displayed; wherein, the display / hide logic setting page includes a trigger condition setting area and a display / hide logic setting area, the display / hide logic setting area is used to set the display / hide logic for the field, the trigger condition setting area is used to set the conditions for triggering the display / hide logic for the field, and the trigger condition setting area includes a formula condition setting control, the formula condition setting control is used to set the trigger condition of formula type for the field;
[0007] Obtain the first trigger condition data input based on the formula condition setting control in the trigger condition setting area; the first trigger condition data includes a first field, the variable name corresponding to the first field, and the formula, wherein the first field is the field required to trigger the show / hide logic;
[0008] Obtain the display / concealment logic data entered in the display / concealment logic setting area; the display / concealment logic data includes a second field and the target display / concealment logic type corresponding to the second field, wherein the second field is the field to be triggered for display / concealment logic;
[0009] The target form identifier, the first trigger condition data, and the display / hide logic data corresponding to the target form are sent to the server so that the server stores the target form identifier, the first trigger condition data, and the display / hide logic data accordingly.
[0010] Optionally, obtaining the first trigger condition data input based on the formula condition setting control in the trigger condition setting area includes:
[0011] In response to the triggering of the formula condition setting control, the formula editing area, the first field selection control, and the variable name input box corresponding to the first field selection control are displayed in the trigger condition setting area.
[0012] In response to the first field selection control being triggered, multiple fields in the target form are displayed, and the selected field among the multiple fields is determined as the first field;
[0013] Get the variable name entered in the variable name input box, and get the formula entered in the formula editing area.
[0014] Optionally, the trigger condition setting area further includes adding controls; the method further includes:
[0015] In response to the addition of the control being triggered, a new first field selection control and a variable name input box corresponding to the first field selection control are displayed in the trigger condition setting area.
[0016] Optionally, the display / concealment logic setting area further includes a second field selection control and a display / concealment logic selection control corresponding to the second field selection control; obtaining the display / concealment logic data input in the display / concealment logic setting area includes:
[0017] In response to the second field selection control being triggered, multiple fields in the target form are displayed, and the selected field among the multiple fields is determined as the second field;
[0018] In response to the triggering of the display / hide logic selection control, multiple preset display / hide logic types are displayed, and the selected preset display / hide logic type among the multiple preset display / hide logic types is determined as the target display / hide logic type.
[0019] Optionally, the method further includes:
[0020] If the second field is an option type, then the option setting control corresponding to the second field selection control is displayed in the display / hidden logic setting area;
[0021] In response to the activation / deactivation of the option setting control being triggered, the activation and deactivation controls are displayed.
[0022] In response to the activation control being triggered, the option selection control corresponding to the second field selection control and the show / hide logic selection control corresponding to the option are displayed;
[0023] Obtain the option determined based on the option selection control, and obtain the option display / hide logic type determined based on the display / hide logic selection control corresponding to the option.
[0024] Optionally, the plurality of preset display / concealment logic types include display, hide, enable, and disable.
[0025] Optionally, the trigger condition setting area further includes a logical condition setting control, which is used to set logical trigger conditions for the field; the method further includes:
[0026] Acquire second trigger condition data input based on the logical condition setting control in the trigger condition setting area. The second trigger condition data includes a third field, a target threshold, and a target logical relationship corresponding to the third field.
[0027] The method further includes:
[0028] Send the target form identifier corresponding to the target form, the second trigger condition data, and the display / hide logic data to the server.
[0029] Optionally, obtaining the second trigger condition data input based on the logical condition setting control in the trigger condition setting area includes:
[0030] In response to the triggering of the logical condition setting control, a third field selection control, a logical relationship selection control corresponding to the third field selection control, and a threshold input box are displayed in the triggering condition setting area;
[0031] In response to the triggering of the third field selection control, multiple fields in the target form are displayed, and the selected field among the multiple fields is determined as the third field;
[0032] Obtain the target threshold entered in the threshold input box, and obtain the target logical relationship determined by the logical relationship selection control.
[0033] Optionally, obtaining the target logical relationship determined by the logical relationship selection control includes:
[0034] In response to the triggering of the logical relationship selection control, multiple preset logical relationships corresponding to the field type to which the third field belongs are displayed;
[0035] The selected preset logical relationship from the plurality of preset logical relationships is determined as the target logical relationship.
[0036] Secondly, this application provides a form-based field visibility / concealment setting device, comprising:
[0037] The display module is used to display the display logic setting page in response to the triggering of the display logic setting control in the form editing page corresponding to the target form; wherein, the display logic setting page includes a trigger condition setting area and a display logic setting area, the display logic setting area is used to set the display logic for fields, the trigger condition setting area is used to set the conditions for triggering the display logic for fields, and the trigger condition setting area includes a formula condition setting control, the formula condition setting control is used to set the trigger conditions of formula type for fields;
[0038] The first acquisition module is used to acquire the first trigger condition data input by the formula condition setting control in the trigger condition setting area; the first trigger condition data includes a first field, the variable name corresponding to the first field, and the formula, wherein the first field is the field required to trigger the display logic;
[0039] The second acquisition module is used to acquire the display / concealment logic data input in the display / concealment logic setting area; the display / concealment logic data includes a second field and a target display / concealment logic type corresponding to the second field, wherein the second field is the field to be triggered for display / concealment logic;
[0040] The sending module is used to send the target form identifier corresponding to the target form, the first trigger condition data, and the display / hide logic data to the server, so that the server stores the target form identifier, the first trigger condition data, and the display / hide logic data accordingly.
[0041] Thirdly, this application provides an electronic device, including: a processor and a memory and a transceiver respectively communicatively connected to the processor;
[0042] The memory stores computer-executed instructions; the transceiver is used to send and receive data with the server.
[0043] The processor executes computer execution instructions stored in the memory to implement the form-based field visibility logic setting method as described in any of the first aspects.
[0044] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the form-based field display / concealment logic setting method described in any one of the first aspects.
[0045] Fifthly, this application provides a computer program product, including computer execution instructions, which, when executed by a processor, implement the form-based field display / hiding logic setting method described in any of the first aspects.
[0046] The form-based field display / concealment logic setting method, apparatus, device, and medium provided in this application, by setting a formula condition setting control in the display / concealment logic setting page, allows users to trigger the formula condition setting control when they have a need for setting field display / concealment logic. This sets a formula-type trigger condition for the field to trigger the display / concealment logic, thereby enabling the device to obtain the first trigger condition data and display / concealment logic data. With the help of the server, the target form identifier, the first trigger condition data, and the display / concealment logic data are stored accordingly, facilitating the subsequent display / concealment of the second field in the target form by calling the first trigger condition data and the display / concealment logic data. The field display / concealment logic setting scheme provided in this application offers the function of setting formula-type trigger conditions, which is more flexible and better meets the needs of users. Attached Figure Description
[0047] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0048] Figure 1 This is a schematic diagram illustrating an application scenario according to an exemplary embodiment;
[0049] Figure 2 This is a flowchart illustrating a method for setting the display logic of fields based on a form, according to an exemplary embodiment.
[0050] Figure 3 This is a flowchart illustrating a method for setting the display logic of fields based on a form, according to another exemplary embodiment.
[0051] Figure 4 This is a schematic diagram illustrating a display / concealment logic setting page according to an exemplary embodiment;
[0052] Figure 5 This is a schematic diagram illustrating an explicit / implicit logic setting process according to an exemplary embodiment;
[0053] Figure 6 This is a schematic diagram illustrating a display / concealment logic setting page according to another exemplary embodiment;
[0054] Figure 7 This is a schematic diagram illustrating a logical condition setting process according to an exemplary embodiment;
[0055] Figure 8 This is a schematic diagram illustrating the structure of a form-based field visibility logic setting device according to an exemplary embodiment;
[0056] Figure 9 This is a schematic diagram of the structure of an electronic device according to an exemplary embodiment.
[0057] The accompanying drawings have illustrated specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to specific embodiments. Detailed Implementation
[0058] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0059] The terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. In the following descriptions of embodiments, "a plurality of" means two or more, unless otherwise explicitly defined.
[0060] To clearly understand the technical solution of this application, the solutions of the prior art will be described in detail first.
[0061] Currently, in daily work scenarios that require data entry, such as data reporting, registration, applications, and information collection, forms can be used. A form is a tool consisting of several fields used for data entry and collection.
[0062] In related technologies, display logic is set for fields in a form. When the form is subsequently displayed, the fields are shown or hidden according to the pre-defined logic. However, this field display logic setting scheme has relatively limited functionality and is difficult to meet user needs.
[0063] To address the issue that existing field display / concealment logic setting schemes offer limited functionality and fail to meet user needs, the inventors discovered that more features can be added to these schemes based on actual user requirements. Specifically, while most related technologies offer the ability to set trigger conditions based on logical types, these may not fully satisfy user needs. Considering the potentially complex relationships between fields in a form, a function to set formula-based trigger conditions can be provided, allowing users to customize trigger conditions according to their requirements. Specifically, by setting a formula condition setting control in the display / concealment logic setting page, when a user has a need to set field display / concealment logic, they can trigger the formula condition setting control to set a formula type trigger condition for the field to trigger the display / concealment logic. The device then obtains the first trigger condition data and the display / concealment logic data. With the help of the server, the target form identifier, the first trigger condition data, and the display / concealment logic data are stored accordingly, which facilitates the subsequent display / concealment of the second field in the target form by calling the first trigger condition data and the display / concealment logic data. The field display / concealment logic setting scheme provided by this application provides the function of setting formula type trigger conditions, which is more flexible and better meets the needs of users.
[0064] The following describes the application scenarios of the form-based field display / concealment logic setting method provided in the embodiments of this application.
[0065] Figure 1 This is a schematic diagram illustrating an application scenario according to an exemplary embodiment. For example... Figure 1 As shown, this application scenario includes: electronic device 1 and server 2. The devices are connected via a network.
[0066] In this embodiment, electronic device 1 is used to set the display / hidden logic for fields in a form. Server 2 is the backend server for electronic device 1. When a user requires display / hidden logic settings for fields in a target form, they trigger the display / hidden logic setting control on the form editing page corresponding to the target form via electronic device 1. Electronic device 1 displays the display / hidden logic setting page. The user inputs first trigger condition data based on the formula condition setting control in the trigger condition setting area of the display / hidden logic setting page via electronic device 1, and inputs display / hidden logic data in the display / hidden logic setting area. Correspondingly, electronic device 1 acquires the first trigger condition data and the display / hidden logic data, and then sends the target form identifier, the first trigger condition data, and the display / hidden logic data corresponding to the target form to server 2, so that server 2 stores the target form identifier, the first trigger condition data, and the display / hidden logic data accordingly.
[0067] The technical solution of this application and how it solves the above-mentioned technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.
[0068] Figure 2 This is a flowchart illustrating a form-based field display / hide logic setting method according to an exemplary embodiment. The execution entity of the form-based field display / hide logic setting method provided in this application is a form-based field display / hide logic setting device, which is integrated into an electronic device. For example... Figure 2 As shown, the method for setting the field visibility logic based on a form provided in this embodiment includes the following steps:
[0069] Step S101: In response to the triggering of the display / hide logic setting control in the form editing page corresponding to the target form, the display / hide logic setting page is displayed; wherein, the display / hide logic setting page includes a trigger condition setting area and a display / hide logic setting area. The display / hide logic setting area is used to set the display / hide logic for the field, and the trigger condition setting area is used to set the conditions for triggering the display / hide logic for the field. The trigger condition setting area includes a formula condition setting control, which is used to set the trigger condition of the formula type for the field.
[0070] The target form is any editable form that includes multiple fields. In this embodiment, the form editing page corresponding to the target form has a display / concealment logic setting control, which is used to set the display / concealment logic for the fields in the target form. When a user has a requirement for display / concealment logic settings for fields in the target form, the electronic device is triggered to display the form editing page, thereby triggering the display / concealment logic setting control, which in turn triggers the electronic device to display the display / concealment logic setting page, where the field display / concealment logic is set.
[0071] The style and triggering method of the explicit / implicit logic setting control and the formula condition setting control can be set as needed. This embodiment does not limit this. For example, the style can be a button and the triggering method can be a single click or a double click.
[0072] In this embodiment, after the electronic device displays the display / hide logic setting page, the user can set the trigger condition of the field based on the formula condition setting control in the trigger condition setting area of the electronic device, and set the display / hide logic of the field in the display / hide logic setting area of the electronic device. Accordingly, after step S101, the electronic device executes steps S102-S103.
[0073] Step S102: Obtain the first trigger condition data entered in the trigger condition setting area based on the formula condition setting control; the first trigger condition data includes a first field, the variable name corresponding to the first field, and the formula, and the first field is the field required to trigger the display logic.
[0074] The formula includes at least one variable, which is represented by a variable name that refers to the first field. Correspondingly, there is at least one first field. Therefore, the first triggering condition data includes the formula, at least one first field, and the variable name corresponding to each first field. For ease of description, step S102 is illustrated using an example where there is only one first field.
[0075] Step S103: Obtain the display / hidden logic data entered in the display / hidden logic setting area; the display / hidden logic data includes a second field and the target display / hidden logic type corresponding to the second field, the second field being the field to be triggered for display / hidden logic.
[0076] The first field and the second field can be the same field or different fields; this embodiment does not limit this.
[0077] Step S104: Send the target form identifier, first trigger condition data, and display / hide logic data corresponding to the target form to the server so that the server stores the target form identifier, first trigger condition data, and display / hide logic data accordingly.
[0078] The form identifier is used to refer to the corresponding form, distinguish different forms, and uniquely identify the corresponding form. For example, the target form identifier includes the target form's ID (identity number), name, and other information. By using a server to store the target form identifier, the first trigger condition data, and the display / hide logic data accordingly, when the target form is edited and sent to the electronic device used by the user who filled it out, the user triggers the electronic device to display the target form. The electronic device retrieves the first trigger condition data and display / hide logic data from the server through the target form identifier. Thus, if the first field in the target form meets the pre-set formula-type trigger condition, the electronic device will display / hide the second field according to the target display / hide logic type. Optionally, the server provides an interface through which the electronic device interacts with the server. Specifically, the electronic device calls this interface to send the target form identifier, the first trigger condition data, and the display / hide logic data corresponding to the target form to the server. Furthermore, the electronic device used by the user filling out the form calls this interface to retrieve the first trigger condition data and display / hide logic data corresponding to the target form identifier. In this embodiment, the display / concealment logic settings page also displays a save control. In response to the save control being triggered, the electronic device sends the target form identifier, the first trigger condition data, and the display / concealment logic data corresponding to the target form to the server.
[0079] In this embodiment, by setting a formula condition setting control in the display / hide logic setting page, when a user has a need to set field display / hide logic, the user can trigger the formula condition setting control to set a formula type trigger condition for the field to trigger the display / hide logic. The device then obtains the first trigger condition data and the display / hide logic data. With the help of the server, the target form identifier, the first trigger condition data, and the display / hide logic data are stored accordingly, which facilitates the subsequent display / hide of the second field in the target form by calling the first trigger condition data and the display / hide logic data. The field display / hide logic setting scheme provided by this application provides the function of setting the trigger condition of the formula type, which is more flexible and better meets the needs of users.
[0080] Figure 3 This is a flowchart illustrating a method for setting the display / hiding logic of field based on a form, according to another exemplary embodiment. Figure 3 As shown, the form-based field display / concealment logic setting method provided in this embodiment is based on the form-based field display / concealment logic setting method provided in the previous embodiment of this application, and further refines steps S102 and S103. The form-based field display / concealment logic setting method provided in this embodiment includes the following steps:
[0081] Step S201: In response to the triggering of the display / hide logic setting control in the form editing page corresponding to the target form, the display / hide logic setting page is displayed.
[0082] The display / concealment logic settings page includes a trigger condition settings area and a display / concealment logic settings area. The display / concealment logic settings area is used to set the display / concealment logic for fields, and the trigger condition settings area is used to set the conditions for triggering the display / concealment logic for fields. The trigger condition settings area includes a formula condition settings control, which is used to set formula-type trigger conditions for fields.
[0083] In this embodiment, step S201 is implemented in the same way as step S101, and will not be described again here.
[0084] In this embodiment, after step S201, the electronic device acquires the first trigger condition data input based on the formula condition setting control in the trigger condition setting area. In an optional embodiment, acquiring the first trigger condition data input based on the formula condition setting control in the trigger condition setting area includes the following steps S202-S204.
[0085] In step S202, in response to the triggering of the formula condition setting control, the formula editing area, the first field selection control, and the variable name input box corresponding to the first field selection control are displayed in the trigger condition setting area.
[0086] The formula editing area is used to input formulas, the first field selection control is used to select the first field, and the variable name input box is used to input variable names. The styles of the formula editing area, the first field selection control, and the corresponding variable name input box can be set as needed; this embodiment does not limit this.
[0087] Step S203: In response to the first field selection control being triggered, multiple fields in the target form are displayed, and the selected field among the multiple fields is determined as the first field.
[0088] In this embodiment, the user triggers a first field selection control via an electronic device, which then displays multiple fields from a target form for the user to select. The user selects the desired field from the displayed fields, and the electronic device, in response to any field being selected, designates the selected field as the first field. Optionally, the multiple fields are displayed in a list format.
[0089] Optionally, before the first field selection control is triggered, a first prompt message is displayed in the first field selection control to prompt the user to select the first field. This way, even if the user is unfamiliar with the display / hidden logic settings page or is not proficient in its operation, they can still understand the function of the first field selection control, thereby improving the page display effect. The content of the first prompt message can be set as needed; this embodiment does not limit it. For example, the first prompt message could be "Please select a field." Correspondingly, after the first field is selected through the first field selection control, the electronic device updates the first prompt message to display the first field to indicate that the first field has been selected. In this way, even if the user forgets the previously selected field during subsequent operations, they can still understand the selected first field through the first field selection control.
[0090] Step S204: Obtain the variable name entered in the variable name input box, and obtain the formula entered in the formula editing area.
[0091] In this embodiment, after selecting the first field, the user sets a variable name for it by entering the variable name in the variable name input box via the electronic device, and the electronic device then retrieves that variable name. After entering the variable name, the user enters a formula in the formula editing area via the electronic device, and the electronic device then retrieves that formula.
[0092] In the above optional embodiments, steps S202-S204 provide a specific scheme for setting trigger conditions for formula types. By displaying a first field selection control, a variable name input box, and a formula editing area in the trigger condition setting area, users can easily select the first field through the first field selection control, input the variable name required for the formula through the variable name input box, and input the formula through the formula editing area. The trigger conditions for formula types can be set through human-computer interaction, which can better meet user needs and improve user experience.
[0093] In the above optional embodiments, the number of formula editing areas displayed in the trigger condition setting area is one, that is, one formula is set by default. The number of the first field selection control and the corresponding variable name input box is one, that is, the formula requires one variable by default. However, considering that the types of formulas are diverse, the number of variables required by the formula is also diverse, which may be one or more. Accordingly, the function of adding the first field selection control and the corresponding variable name input box can also be provided to facilitate users to flexibly add them according to the formula needs. Optionally, the trigger condition setting area also includes adding controls; the form-based field display and hiding logic setting method provided in this application also includes: in response to the addition of a control being triggered, adding a first field selection control and the variable name input box corresponding to the first field selection control in the trigger condition setting area. The style and triggering method of the added control can be set as needed, and this embodiment does not limit this. For example, the style is a button, and the triggering method is single click, double click, etc.
[0094] Among the above optional implementation methods, by setting up controls in the trigger condition setting area, users can easily add a first field selection control and a corresponding variable name input box according to the formula requirements, which provides high flexibility.
[0095] Correspondingly, the trigger condition setting area also displays a delete control corresponding to the first field selection control. This delete control is used to cancel the display of the corresponding first field selection control and variable name input box when triggered.
[0096] For example, Figure 4 This is a schematic diagram illustrating a display / concealment logic setting page according to an exemplary embodiment, such as... Figure 4 As shown, the display / hidden logic settings page includes a trigger condition settings area and a display / hidden logic settings area. The trigger condition settings area displays the formula condition settings control "Formula Condition", the first field selection control "Field", the corresponding variable name input box "Variable Name" and the delete control "Delete", the formula editing area "Formula Editing Area", and the add control "Add".
[0097] In this embodiment, after acquiring the first trigger condition data input based on the formula condition setting control in the trigger condition setting area, the user further sets the display / hidden logic in the display / hidden logic setting area via the electronic device, thereby the electronic device also acquires the display / hidden logic data input in the display / hidden logic setting area. The display / hidden logic data includes a second field and a target display / hidden logic type corresponding to the second field; the second field is the field for which the display / hidden logic is to be triggered. In an optional embodiment, the display / hidden logic setting area includes a second field selection control and a display / hidden logic selection control corresponding to the second field selection control. The method for acquiring the display / hidden logic data input in the display / hidden logic setting area includes the following steps S205-S206.
[0098] In step S205, in response to the second field selection control being triggered, multiple fields in the target form are displayed, and the selected field among the multiple fields is determined as the second field.
[0099] In this embodiment, step S205 is implemented in the same way as step S203, and will not be described again here.
[0100] Step S206: In response to the triggering of the display / hide logic selection control, multiple preset display / hide logic types are displayed, and the selected preset display / hide logic type among the multiple preset display / hide logic types is determined as the target display / hide logic type.
[0101] In this embodiment, after determining the second field, the user sets the display / concealment logic type for the second field via an electronic device. Optionally, multiple preset display / concealment logic types are displayed in a list format.
[0102] In the above optional embodiments, steps S205-S206 provide a specific scheme for setting the display and concealment logic. By displaying a second field selection control and a display and concealment logic selection control in the display and concealment logic setting area, users can select the second field through the second field selection control and select the target display and concealment logic type through the display and concealment logic selection control. The display and concealment logic is set through human-computer interaction, which can better meet user needs and improve user experience.
[0103] The multiple preset display / concealment logic types can be set as needed, and this embodiment does not limit them. Optionally, the multiple preset display / concealment logic types include display, hide, enable, and disable. Display means the field is hidden by default and is displayed when a trigger condition is met; hide means the field is displayed by default and is hidden when a trigger condition is met; enable means the field is always displayed, is disabled by default, and is enabled when a trigger condition is met; disable means the field is always displayed, is enabled by default, and is disabled when a trigger condition is met.
[0104] The above optional implementation methods provide a rich set of preset display / hidden logic types for users to choose from, meeting the form needs of multiple scenarios.
[0105] Based on the above optional embodiments, in one optional implementation, considering that fields have a type, for a field belonging to the option type, it may be a single option or multiple options, and the option itself can also be regarded as a field. Accordingly, display logic can also be set for the option. Then, the form-based field display logic setting method provided by this application further includes: if the second field belongs to the option type, then display the whether the option setting control corresponding to the second field selection control is enabled in the display logic setting area; in response to the whether the option setting control is enabled being triggered, display the enabled control and the disabled control; in response to the enabled control being triggered, display the option selection control corresponding to the second field selection control and the display logic selection control corresponding to the option; obtain the option determined based on the option selection control, and obtain the option display logic type determined based on the display logic selection control corresponding to the option.
[0106] After determining the second field, the type of the second field is obtained, and it is determined whether the type is an option type. If it is an option type, the option setting control corresponding to the second field selection control is displayed in the display / hidden logic setting area, so that the user can trigger the option setting control as needed. After the option setting control is triggered, the electronic device displays the enable control and the disable control. If the user has an option setting requirement, the enable control is triggered; otherwise, the disable control is triggered. After the disable control is triggered, the electronic device maintains the currently displayed content; after the enable control is triggered, the option selection control corresponding to the second field selection control and the display / hidden logic selection control corresponding to the option are displayed, so that the user can trigger the option selection control. In response to the triggering of the option selection control, the electronic device displays at least one option corresponding to the second field. The user can select an option from at least one option as needed, and select the option display / hidden logic type based on the display / hidden logic selection control corresponding to the option. The implementation method of selecting the option display / hidden logic type based on the display / hidden logic selection control corresponding to the option is the same as the implementation method of step S206, and will not be repeated here.
[0107] Among the above optional implementation methods, if the field is of the option type, there is also the option setting control. If enabled, the corresponding option display logic type can be set for the option corresponding to the field of the option type. That is, it supports the display logic setting at the option level, which satisfies more granular control between fields and has a wider range of use cases.
[0108] In the above optional embodiments, the number of the second field selection control and its corresponding display / hidden logic selection control displayed in the display / hidden logic setting area is one. However, considering that users may need to set display / hidden logic for multiple fields, the function of adding a second field selection control and its corresponding display / hidden logic selection control can also be provided to facilitate flexible addition by users as needed. Optionally, the display / hidden logic setting area also includes an add control. The usage process of the add control is the same as that of the add control in the trigger condition setting area in step S204, and will not be repeated here. Correspondingly, the display / hidden logic setting area also displays a delete control corresponding to the second field selection control. The usage process of the delete control is the same as that of the delete control in the trigger condition setting area in step S204, and will not be repeated here.
[0109] For example, see [link to previous article] Figure 4 The display / concealment logic settings area displays an "Add" control, a "Field" second field selection control, a corresponding "Field Display / Concealment Logic" display / concealment logic selection control, a "Delete" control, an "Enable Option Settings" control, an "Option Value" option selection control, and an "Option Display / Concealment Logic" display / concealment logic selection control for each option. For example, Figure 5 This is a schematic diagram illustrating an explicit / implicit logic setting process according to an exemplary embodiment, such as... Figure 5 As shown, the process begins by selecting the second field, then choosing its corresponding display / hidden logic type. Next, it checks if the second field is an option type. If not, it determines whether to add the field. If it is an option type, it checks if option settings are enabled. If not, it checks whether to add the field. If enabled, it selects an option, chooses its display / hidden logic type, and then checks whether to add the field. When determining whether to add a field, if it is added, the above process is repeated; otherwise, the process ends.
[0110] Step S207: Send the target form identifier, first trigger condition data, and display / hide logic data corresponding to the target form to the server so that the server stores the target form identifier, first trigger condition data, and display / hide logic data accordingly.
[0111] In this embodiment, step S207 is implemented in the same way as step S104, and will not be described again here.
[0112] The above embodiments illustrate the form-based field display / concealment logic setting method provided by this application by taking the setting of trigger conditions for formula types as an example. In other embodiments, electronic devices can also set trigger conditions for logic types through the display / concealment logic setting page. The form-based field display / concealment logic setting method provided by this application will be described below by taking the setting of trigger conditions for logic types as an example.
[0113] In an optional embodiment, the trigger condition setting area further includes a logic condition setting control, which is used to set a logical type of trigger condition for the field. Accordingly, steps S202-S204 can be replaced by: obtaining second trigger condition data input in the trigger condition setting area based on the logic condition setting control, wherein the second trigger condition data includes a third field, a target threshold corresponding to the third field, and a target logical relationship. Accordingly, step S207 can be replaced by: sending the target form identifier corresponding to the target form, the second trigger condition data, and the explicit / implicit logic data to the server.
[0114] The style and triggering method of the logic condition setting control are the same as those of the formula condition setting control, and will not be repeated here. The third field is required to trigger the show / hide logic. Unlike the first field, the third field is required for logic-type triggering conditions, while the first field is required for formula-type triggering conditions. The triggering condition is determined to be met when the logical relationship between the third field and the target threshold matches the target logical relationship.
[0115] After setting the display / concealment logic for fields, electronic devices generate data in a specific format and send it to the server by calling the server's interface. For example, the data format might include: formId: "target form identifier", type: "trigger type: logic type or formula type", formulaContent: "formula content: this field exists if it's a formula type, otherwise it doesn't", itemData: "trigger condition data", and controlData: "display / concealment logic data".
[0116] In this embodiment, users can set formula-type trigger conditions or logic-type trigger conditions for fields as needed, which is quite flexible.
[0117] In one optional implementation, the method for obtaining the second trigger condition data input based on the logical condition setting control in the trigger condition setting area includes: in response to the logical condition setting control being triggered, displaying a third field selection control, a logical relationship selection control corresponding to the third field selection control, and a threshold input box in the trigger condition setting area; in response to the third field selection control being triggered, displaying multiple fields in the target form, and determining the selected field among the multiple fields as the third field; obtaining the target threshold input in the threshold input box, and obtaining the target logical relationship determined based on the logical relationship selection control.
[0118] The above optional embodiments provide a specific scheme for setting trigger conditions for logical types. By displaying a third field selection control, a logical relationship selection control, and a threshold input box in the trigger condition setting area, users can easily select a third field using the third field selection control, input a target threshold using the threshold input box, and determine the target logical relationship using the logical relationship selection control. This human-computer interaction enables the setting of trigger conditions for logical types, which can better meet user needs and improve user experience.
[0119] In the above optional embodiments, the number of the third field selection control, the corresponding logical relationship selection control, and the threshold input box displayed in the trigger condition setting area is one. However, considering that users may need to set trigger conditions for multiple fields, the function of adding the third field selection control, the corresponding logical relationship selection control, and the threshold input box can also be provided to facilitate flexible addition by users as needed. Optionally, the trigger condition setting area also includes adding controls. The process of adding controls is described in step S204, and will not be repeated here. By supporting the simultaneous setting of display and hiding logic for multiple fields, repetitive coding is avoided, and work efficiency is improved. Correspondingly, the trigger condition setting area also displays a delete control corresponding to the third field selection control. The process of deleting controls is described in step S204, and will not be repeated here.
[0120] When there are more than one third field selection control, the user can also set the logical relationship between two adjacent third fields. Correspondingly, the trigger condition setting area also includes an adjacent logical relationship selection control. In response to the adjacent logical relationship selection control being triggered, the electronic device displays multiple adjacent logical relationship types and determines the selected adjacent logical relationship type as the target adjacent logical relationship type. These multiple adjacent logical relationship types include AND, OR, and NOT.
[0121] Optionally, the method for obtaining the target logical relationship determined by the logical relationship selection control includes: in response to the logical relationship selection control being triggered, displaying multiple preset logical relationships corresponding to the field type to which the third field belongs; and determining the selected preset logical relationship among the multiple preset logical relationships as the target logical relationship. Different field types correspond to different preset logical relationships. For example, the multiple preset logical relationships corresponding to the text type include: equal to, not equal to, and contain; the multiple preset logical relationships corresponding to the numeric type include: equal to, not equal to, greater than, greater than or equal to, less than, and less than or equal to; the multiple preset logical relationships corresponding to the date type include: equal to, not equal to, greater than, greater than or equal to, less than, and less than or equal to; the multiple preset logical relationships corresponding to the single-selection type include: equal to and not equal to; and the multiple preset logical relationships corresponding to the multi-selection type include: equal to, not equal to, contain all, and contain any.
[0122] Among the above optional implementation methods, multiple preset logical relationships are provided for different field types, which are more detailed and richer, and can better meet user needs.
[0123] For example, Figure 6 This is a schematic diagram illustrating a display / concealment logic setting page according to another exemplary embodiment, such as... Figure 6 As shown, the display / hidden logic settings page includes a trigger condition settings area and a display / hidden logic settings area. The trigger condition settings area displays a logic condition setting control "Logic Condition," a third field selection control "Field," a corresponding logical relationship selection control "Relationship Drop-down List," a threshold input box "Value," a delete control "Delete," adjacent logical relationship selection controls "AND, OR, NOT," and an add control "Add." For example, Figure 7 A schematic diagram illustrating a logical condition setting process according to an exemplary embodiment is shown, such as... Figure 7 As shown, the process begins by selecting the third field, then displaying a dropdown list of relationships based on the field type. The dropdown list shows multiple preset logical relationships. Next, the target threshold is set, and it is determined whether there are multiple condition requirements. If not, the process ends; if so, a new field is added, which means adding a third field selection control, a corresponding logical relationship selection control, and a threshold input box. Then, the logical relationships between the fields are set, and the above process is executed again.
[0124] Figure 8 This is a schematic diagram illustrating the structure of a form-based field visibility logic setting device according to an exemplary embodiment, such as... Figure 8 As shown, in this embodiment, the form-based field display / concealment logic setting device 300 can be installed in an electronic device. The form-based field display / concealment logic setting device 300 includes:
[0125] The display module 301 is used to display the display logic setting page in response to the triggering of the display logic setting control in the form editing page corresponding to the target form; wherein, the display logic setting page includes a trigger condition setting area and a display logic setting area. The display logic setting area is used to set the display logic for the field, and the trigger condition setting area is used to set the conditions for triggering the display logic for the field. The trigger condition setting area includes a formula condition setting control, which is used to set the trigger conditions of the formula type for the field.
[0126] The first acquisition module 302 is used to acquire the first trigger condition data entered in the trigger condition setting area based on the formula condition setting control; the first trigger condition data includes a first field, the variable name corresponding to the first field, and the formula, and the first field is the field required to trigger the display logic;
[0127] The second acquisition module 303 is used to acquire the display / concealment logic data entered in the display / concealment logic setting area; the display / concealment logic data includes a second field and the target display / concealment logic type corresponding to the second field, and the second field is the field to be triggered for display / concealment logic;
[0128] The sending module 304 is used to send the target form identifier, the first trigger condition data, and the display / hidden logic data corresponding to the target form to the server, so that the server stores the target form identifier, the first trigger condition data, and the display / hidden logic data accordingly.
[0129] Optionally, the first acquisition module 302 is used for:
[0130] In response to the triggering of the formula condition setting control, the formula editing area, the first field selection control, and the variable name input box corresponding to the first field selection control are displayed in the trigger condition setting area;
[0131] In response to the first field selection control being triggered, multiple fields in the target form are displayed, and the selected field among the multiple fields is determined as the first field;
[0132] Get the variable name entered in the variable name input box, and get the formula entered in the formula editing area.
[0133] Optionally, the trigger condition setting area also includes adding controls; the display module 301 is also used for:
[0134] In response to the addition of a control being triggered, a first field selection control and the corresponding variable name input box are added and displayed in the trigger condition setting area.
[0135] Optionally, the display / concealment logic setting area also includes a second field selection control and a corresponding display / concealment logic selection control; the second acquisition module 303 is used for:
[0136] In response to the second field selection control being triggered, multiple fields in the target form are displayed, and the selected field among the multiple fields is determined as the second field;
[0137] In response to the triggering of the show / hide logic selection control, multiple preset show / hide logic types are displayed, and the selected preset show / hide logic type is determined as the target show / hide logic type.
[0138] Optionally, the second acquisition module 303 is further configured to:
[0139] If the second field is of the option type, then display the option setting control corresponding to the second field selection control in the display / hidden logic setting area;
[0140] In response to the activation or deactivation of the option setting control being triggered, display whether the control is enabled or disabled;
[0141] In response to the control being activated, display the option selection control corresponding to the second field selection control and the corresponding show / hide logic selection control for the option.
[0142] Get the option determined by the option selection control, and get the option display logic type determined by the display logic selection control corresponding to the option.
[0143] Optionally, multiple preset display / concealment logic types include display, hide, enable, and disable.
[0144] Optionally, the trigger condition setting area also includes a logical condition setting control, which is used to set logical trigger conditions for the field; the device also includes a third acquisition module, which is used to:
[0145] Get the second trigger condition data entered in the trigger condition setting area based on the logical condition setting control. The second trigger condition data includes a third field, the target threshold corresponding to the third field, and the target logical relationship.
[0146] Send the target form identifier, first trigger condition data, and display / hide logic data corresponding to the target form to the server, including:
[0147] Send the target form identifier, first trigger condition data, second trigger condition, and explicit / implicit logic data corresponding to the target form to the server.
[0148] Optionally, the third acquisition module is used for:
[0149] In response to the triggering of the logical condition setting control, the third field selection control, the logical relationship selection control corresponding to the third field selection control, and the threshold input box are displayed in the triggering condition setting area;
[0150] In response to the third field selection control being triggered, multiple fields in the target form are displayed, and the selected field among the multiple fields is identified as the third field;
[0151] Get the target threshold entered in the threshold input box, and get the target logical relationship determined by the logical relationship selection control.
[0152] Optionally, the third acquisition module is used for:
[0153] In response to the logical relationship selection control being triggered, multiple preset logical relationships corresponding to the field type to which the third field belongs are displayed;
[0154] The selected preset logical relationship from multiple preset logical relationships is determined as the target logical relationship.
[0155] The form-based field display / concealment logic setting device provided in this embodiment can execute the technical solution of the corresponding method embodiment. Its implementation principle and technical effect are similar to those of the corresponding method embodiment, and will not be described in detail here.
[0156] This application also provides an electronic device. The electronic device is intended for various forms of digital computers, such as mobile phones, computers, laptops, desktop computers, workstations, personal digital assistants, and other suitable computers. Figure 9 This is a schematic diagram illustrating the structure of an electronic device according to an exemplary embodiment. For example... Figure 9 As shown, the electronic device 400 includes a processor 401 and a memory 402 and a transceiver 403, which are respectively communicatively connected to the processor 401.
[0157] The memory 402 stores computer-executable instructions; the transceiver 403 is used to send and receive data with the server; the processor 401 executes the computer-executable instructions stored in the memory 402 to implement the form-based field display / concealment logic setting method provided in this application.
[0158] In this embodiment, the memory 402 and transceiver 403 are connected to the processor 401 via a bus. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, only one thick line is used in the figure, but this does not indicate that there is only one bus or one type of bus.
[0159] The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the application described and / or claimed herein. The various components are interconnected via different buses and can be mounted on a common motherboard or otherwise as required.
[0160] In an exemplary embodiment, a computer-readable storage medium is also provided, which stores computer-executable instructions that, when executed by a processor, are used to implement the form-based field visibility logic setting method provided in this application.
[0161] In an exemplary embodiment, a computer program product is also provided, including computer execution instructions, which, when executed by a processor, are used to implement the form-based field display / hidden logic setting method provided in this application.
[0162] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to this application.
[0163] It should be further noted that although the steps in the flowchart are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowchart may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0164] It should be understood that the above-described device embodiments are merely illustrative, and the device of this application can also be implemented in other ways. For example, the division of units / modules in the above embodiments is only a logical functional division, and there may be other division methods in actual implementation. For example, multiple units, modules, or components may be combined, or integrated into another system, or some features may be ignored or not executed.
[0165] Furthermore, unless otherwise specified, the functional units / modules in the various embodiments of this application can be integrated into one unit / module, or each unit / module can exist physically separately, or two or more units / modules can be integrated together. The integrated units / modules described above can be implemented in hardware or as software program modules.
[0166] When an integrated unit / module is implemented in hardware, the hardware can be digital circuits, analog circuits, etc. The physical implementation of the hardware structure includes, but is not limited to, transistors, memristors, etc. Unless otherwise specified, the processor can be any suitable hardware processor, such as a Central Processing Unit (CPU), Graphics Processing Unit (GPU), Application Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), controller, microcontroller, microprocessor, or other electronic component. Unless otherwise specified, memory can be implemented from any type of volatile or non-volatile storage device or a combination thereof, such as USB flash drives, random-access memory (RAM), static random-access memory (SRAM), dynamic random-access memory (DRAM), enhanced dynamic random-access memory (EDRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), resistive random access memory (RRAM), high-bandwidth memory (HBM), and hybrid memory cube (HMC). Cube, magnetic storage, flash storage, disk, optical disk, portable hard drive or magnetic disk, and other media that can store program code.
[0167] If the integrated unit / module is implemented as a software program module and sold or used as an independent product, it can be stored in a computer-readable storage device. Based on this understanding, the technical solution of this application, 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 memory 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 of the various embodiments of this application.
[0168] In the above embodiments, the descriptions of each embodiment have their own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments. The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as the combination of these technical features does not contradict each other, it should be considered within the scope of this specification.
[0169] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0170] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A method for setting the display / hiding logic of fields based on a form, characterized in that, include: In response to the triggering of the display / hide logic setting control in the form editing page corresponding to the target form, the display / hide logic setting page is displayed; wherein, the display / hide logic setting page includes a trigger condition setting area and a display / hide logic setting area, the display / hide logic setting area is used to set the display / hide logic for the field, the trigger condition setting area is used to set the conditions for triggering the display / hide logic for the field, and the trigger condition setting area includes a formula condition setting control, the formula condition setting control is used to set the trigger condition of formula type for the field; Obtain the first trigger condition data input based on the formula condition setting control in the trigger condition setting area; the first trigger condition data includes a first field, the variable name corresponding to the first field, and the formula, wherein the first field is the field required to trigger the show / hide logic; Obtain the display / concealment logic data entered in the display / concealment logic setting area; the display / concealment logic data includes a second field and the target display / concealment logic type corresponding to the second field, wherein the second field is the field to be triggered for display / concealment logic; Send the target form identifier, the first trigger condition data, and the display / hide logic data corresponding to the target form to the server, so that the server stores the target form identifier, the first trigger condition data, and the display / hide logic data accordingly; The visibility logic setting area includes a second field selection control and a corresponding visibility logic selection control; obtaining the visibility logic data input in the visibility logic setting area includes: In response to the second field selection control being triggered, multiple fields in the target form are displayed, and the selected field among the multiple fields is determined as the second field; In response to the triggering of the display / hide logic selection control, multiple preset display / hide logic types are displayed, and the selected preset display / hide logic type among the multiple preset display / hide logic types is determined as the target display / hide logic type; The method further includes: If the second field is an option type, then the option setting control corresponding to the second field selection control is displayed in the display / hidden logic setting area; In response to the activation / deactivation of the option setting control being triggered, the activation and deactivation controls are displayed. In response to the activation control being triggered, the option selection control corresponding to the second field selection control and the show / hide logic selection control corresponding to the option are displayed; Obtain the option determined based on the option selection control, and obtain the option display / hide logic type determined based on the display / hide logic selection control corresponding to the option.
2. The method according to claim 1, characterized in that, The step of obtaining the first trigger condition data input based on the formula condition setting control in the trigger condition setting area includes: In response to the triggering of the formula condition setting control, the formula editing area, the first field selection control, and the variable name input box corresponding to the first field selection control are displayed in the trigger condition setting area. In response to the first field selection control being triggered, multiple fields in the target form are displayed, and the selected field among the multiple fields is determined as the first field; Get the variable name entered in the variable name input box, and get the formula entered in the formula editing area.
3. The method according to claim 2, characterized in that, The trigger condition setting area also includes adding controls; the method also includes: In response to the addition of the control being triggered, a new first field selection control and a variable name input box corresponding to the first field selection control are displayed in the trigger condition setting area.
4. The method according to claim 1, characterized in that, The multiple preset display / concealment logic types include display, hide, enable, and disable.
5. The method according to claim 1, characterized in that, The trigger condition setting area further includes a logical condition setting control, which is used to set logical trigger conditions for a field; the method further includes: Acquire second trigger condition data input based on the logical condition setting control in the trigger condition setting area. The second trigger condition data includes a third field, a target threshold, and a target logical relationship corresponding to the third field. The method further includes: Send the target form identifier corresponding to the target form, the second trigger condition data, and the display / hide logic data to the server.
6. The method according to claim 5, characterized in that, The step of obtaining the second trigger condition data input based on the logical condition setting control in the trigger condition setting area includes: In response to the triggering of the logical condition setting control, a third field selection control, a logical relationship selection control corresponding to the third field selection control, and a threshold input box are displayed in the triggering condition setting area; In response to the triggering of the third field selection control, multiple fields in the target form are displayed, and the selected field among the multiple fields is determined as the third field; Obtain the target threshold entered in the threshold input box, and obtain the target logical relationship determined by the logical relationship selection control.
7. The method according to claim 6, characterized in that, The step of obtaining the target logical relationship determined based on the logical relationship selection control includes: In response to the triggering of the logical relationship selection control, multiple preset logical relationships corresponding to the field type to which the third field belongs are displayed; The selected preset logical relationship from the plurality of preset logical relationships is determined as the target logical relationship.
8. A form-based field visibility setting device, characterized in that, include: The display module is used to display the display logic setting page in response to the triggering of the display logic setting control in the form editing page corresponding to the target form; wherein, the display logic setting page includes a trigger condition setting area and a display logic setting area, the display logic setting area is used to set the display logic for fields, the trigger condition setting area is used to set the conditions for triggering the display logic for fields, and the trigger condition setting area includes a formula condition setting control, the formula condition setting control is used to set the trigger conditions of formula type for fields; The first acquisition module is used to acquire the first trigger condition data input by the formula condition setting control in the trigger condition setting area; the first trigger condition data includes a first field, the variable name corresponding to the first field, and the formula, wherein the first field is the field required to trigger the display logic; The second acquisition module is used to acquire the display / concealment logic data input in the display / concealment logic setting area; the display / concealment logic data includes a second field and a target display / concealment logic type corresponding to the second field, wherein the second field is the field to be triggered for display / concealment logic; The sending module is used to send the target form identifier corresponding to the target form, the first trigger condition data, and the display / hide logic data to the server, so that the server stores the target form identifier, the first trigger condition data, and the display / hide logic data accordingly. The visibility logic setting area includes a second field selection control and a corresponding visibility logic selection control; the second acquisition module is used for: In response to the second field selection control being triggered, multiple fields in the target form are displayed, and the selected field among the multiple fields is determined as the second field; In response to the triggering of the display / hide logic selection control, multiple preset display / hide logic types are displayed, and the selected preset display / hide logic type among the multiple preset display / hide logic types is determined as the target display / hide logic type; The second acquisition module is further configured to: If the second field is an option type, then the option setting control corresponding to the second field selection control is displayed in the display / hidden logic setting area; In response to the activation / deactivation of the option setting control being triggered, the activation and deactivation controls are displayed. In response to the activation control being triggered, the option selection control corresponding to the second field selection control and the show / hide logic selection control corresponding to the option are displayed; Obtain the option determined based on the option selection control, and obtain the option display / hide logic type determined based on the display / hide logic selection control corresponding to the option.
9. An electronic device, characterized in that, include: A processor, and a memory and a transceiver respectively communicatively connected to the processor; The memory stores computer-executed instructions; the transceiver is used to send and receive data with the server. The processor executes computer execution instructions stored in the memory to implement the form-based field visibility logic setting method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the form-based field visibility logic setting method as described in any one of claims 1 to 7.