CN114385054B - Form filling method and device, electronic equipment and storage medium - Google Patents
Form filling method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114385054B CN114385054B CN202111492419.XA CN202111492419A CN114385054B CN 114385054 B CN114385054 B CN 114385054B CN 202111492419 A CN202111492419 A CN 202111492419A CN 114385054 B CN114385054 B CN 114385054B
- Authority
- CN
- China
- Prior art keywords
- filling
- attribute information
- control
- filled
- input control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000004891 communication Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 238000012360 testing method Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000003111 delayed effect Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/174—Form filling; Merging
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses a form filling method, a form filling device, electronic equipment and a storage medium, wherein the method comprises the following steps: responding to the selection operation of a user on a target form in a client, and acquiring a first control and an input control to be filled in the target form, wherein the first control corresponds to the input control to be filled in; acquiring form filling parameters corresponding to an input control to be filled in and first attribute information of a first control; and responding to the first input of the user, acquiring second attribute information and form data, wherein the second attribute information is matched with the first attribute information, and filling the form data in the input control to be filled based on the form filling parameters, the first attribute information and the second attribute information.
Description
Technical Field
The application belongs to the technical field of terminal equipment, and particularly relates to a form filling method, a form filling device, electronic equipment and a storage medium.
Background
The form has three basic components, form labels, form fields, and form buttons, respectively. The form tag includes a uniform resource locator (Uniform Resource Locator, URL) of a program used for processing the form data and a method for submitting the data to the server, the form field includes a text box, a password box, a multi-line text box, a check box, a radio box, a drop-down selection box, a file uploading box and the like, and the form button includes a submit button, a reset button, a general button and the like.
In some scenes, for some clients, users fill in forms of the clients through a mouse and a keyboard, so that the workload is large, and in addition, the filling efficiency of the forms is low due to artificial subjective factors.
Disclosure of Invention
The embodiment of the application provides a form filling method, a form filling device, electronic equipment and a storage medium, which can solve the problems of low form filling efficiency and large workload of the user.
In a first aspect, an embodiment of the present application provides a form filling method, including:
responding to the selection operation of a user on a target form in a client, and acquiring a first control and an input control to be filled in the target form, wherein the first control corresponds to the input control to be filled in; acquiring form filling parameters corresponding to the input controls to be filled and first attribute information of the first controls; responding to a first input of a user, acquiring second attribute information and form data, wherein the second attribute information is matched with the first attribute information; and filling form data in the input control to be filled based on the form filling parameters, the first attribute information and the second attribute information.
In a second aspect, an embodiment of the present application provides a form filling apparatus, including:
the first acquisition module is used for responding to the selection operation of a user on a target form in the client, acquiring a first control and an input control to be filled in the target form, wherein the first control corresponds to the input control to be filled in; the second acquisition module is used for acquiring form filling parameters corresponding to the input controls to be filled in and first attribute information of the first controls; the third acquisition module is used for responding to the first input of the user and acquiring second attribute information and form data, wherein the second attribute information is matched with the first attribute information; and the filling module is used for filling form data in the input control to be filled based on the form filling parameters, the first attribute information and the second attribute information.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
According to the technical scheme disclosed by the embodiment of the application, a first control and an input control to be filled in a target form are obtained in response to a selection operation of a user on the target form in a client, and the first control corresponds to the input control to be filled in; acquiring form filling parameters corresponding to the input controls to be filled and first attribute information of the first controls; responding to a first input of a user, acquiring second attribute information and form data, wherein the second attribute information is matched with the first attribute information; and filling form data in the input control to be filled based on the form filling parameters, the first attribute information and the second attribute information. The automatic form filling device can automatically fill out the form, reduces the workload of staff and improves the form filling efficiency.
Drawings
FIG. 1 is a schematic flow chart of a form filling method according to an embodiment of the present application;
fig. 2 to 7 are schematic interface diagrams of a form filling method according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a form filling device according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The following describes in detail a form filling method, a form filling device, an electronic device and a storage medium provided in the embodiments of the present application through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
Fig. 1 shows a form filling method provided by an embodiment of the present invention, which can be performed by an electronic device, for example, a terminal device, that is, the form filling method described above can be performed by hardware or software installed in the terminal device, and the method includes the steps of:
step S101: and responding to the selection operation of the user on the target form in the client, and acquiring a first control and an input control to be filled in the target form, wherein the first control corresponds to the input control to be filled in.
Specifically, the target form is at least one form to be filled in the client, and the target form includes, but is not limited to, an input control for filling in content, a name control corresponding to each input control, a confirmation control for confirming or cancelling filling in content, a cancellation control, and the like. For example, fig. 2 shows a form to be filled in the client, where the form includes a "name control", an "input control" corresponding to the "name control", an "age control", an "input control" corresponding to the "age control", a "remark control", an "input control" corresponding to the "remark control", a "confirm control", a cancel control, and the like. When the user selects the form by operating a mouse or a keyboard, etc., all the controls in the form are correspondingly selected, each input control can correspond to a first control, or when the user operates the mouse or the keyboard, etc., to select a partial area in the form, the controls in the partial area are correspondingly selected as the first controls and/or the input controls.
It should be noted that other types of controls may also be included in the target form, and embodiments of the present application are not limited in this regard.
Step S103: and acquiring form filling parameters corresponding to the input controls to be filled in and first attribute information of the first control.
Specifically, the first attribute information of the first control includes, but is not limited to, a type of the first control, a name of the first control, a position of the first control in the target form, a shape of the first control, a size of the first control, and the like. For example, when the first control is the "name" control shown in fig. 2, the first attribute information includes the name of the control (name), the type of the control (name control), the shape of the control (square), the size of the control, and the position of the control in the target form.
Form filling parameters corresponding to the input controls to be filled in include, but are not limited to: the control type of the input control, the filling action corresponding to the control type, the filling flow information of the input control of each type, the filling sequence of all the input controls, the input time upper limit parameter of the input control and the time delay parameter. The type of the input control refers to the type of the input content of the input control, for example, the type of the input control comprises a text box, a check box, a selection box and the like; the control type filling action refers to an action performed when filling content in the input control, such as an action of determining a cursor and typing on a keyboard by a mouse click in a text box, an action of simulating a mouse click option in a selection box, and the like.
The filling flow information of each type of input control refers to an internal execution flow when filling content, and the filling flow information may be predefined by a user, for example, first determining a name of a first control, a control type of the input control corresponding to the first control, and then determining an input flow corresponding to the type of input control. As illustrated in fig. 3, a user may preset a filling procedure of each type of input control in an input area (an expression editor), in which "[ {" "typeName" ":" "TextBox" "," "flow" ":" "textbox.xaml" } ", where" "" typeName "" indicates a name of a first control corresponding to the input control, "" TextBox "" refers to a type of input control corresponding to the first control, "" flow "" refers to an input procedure corresponding to the type of input control, and "" textbox.xaml "" refers to content input by the input control is transferred to the input procedure. As illustrated in fig. 4, after setting "TextBox", the user performs a flow of setting an input text (the corresponding filling action is to click a screen), and a flow of setting an input content (value).
The filling sequence of all the input controls refers to the filling sequence of each input control, for example, the input control corresponding to the name control is filled first, and the input control corresponding to the age control is filled again. The input time upper limit parameter of the input control refers to the longest time allowed when the content is input in each input control, for example, when the content is filled in the input control corresponding to the name control, the input control is allowed to be filled in within 10000 milliseconds. The time delay parameter refers to that after the input content is completed in each input control, the next input control is filled in by delaying a preset time, for example, after the content is filled in the input control corresponding to the name control, the next input control is filled in by delaying 500 milliseconds.
Step S104: and responding to the first input of the user, acquiring second attribute information and form data, wherein the second attribute information is matched with the first attribute information.
Specifically, the form data is input by the user in the content input area (expression editor), wherein the second attribute information is information of a second control corresponding to the first control input by the user, and the first control and the second control may be the same control, and the second attribute information matches the first attribute information. The second attribute information includes, but is not limited to, a type of the second control, a name of the second control, a position of the second control in the target form, a shape of the second control, a filling sequence of an input control corresponding to the second control, a size of the second control, and the like, the form data includes, but is not limited to, filling data of the input control corresponding to the second control, and the second attribute information of the second control and the input control are input in a key value pair mode, so that consistency of the data is ensured. For example, as shown in fig. 5, the user inputs "[ {" index ": 1", "key": ": name", "" value ":", "" Zhang Sanzhi "}, {" index ": 2", "key": "," "age", "" value "," "30" }, { "index": 3"," key ":", "" remark "," "value": ": remark of the test form", "" isBottom ": true" ], and clicks to confirm or cancel. Wherein "" index "" indicates an input, arabic numerals "1" to "3" indicate an input order, "" key ":" "name" "," "key" "" age "", and "" key "" "note" "indicates a name of the second control," "value" ":" "Zhang San" "," "value" ":" "30" ", and" "value" ":" "indicate filling data in the input control indicated by remarks of the" test form ". "isBottom" ": true indicates that the input control is below the corresponding second control.
Step S105: and filling form data in the input control to be filled based on the form filling parameters, the first attribute information and the second attribute information.
In one implementation, the form filling parameters include a control type of an input control, a filling action corresponding to the control type, and filling flow information of each type of input control, and filling form data in the input control to be filled based on the form filling parameters, the first attribute information, and the second attribute information includes: acquiring the input control to be filled currently according to the first attribute information and the second attribute information; acquiring the type of the input control to be filled currently, and calling filling flow information corresponding to the type of the input control to be filled currently; and executing corresponding filling actions in the current input control to be filled according to the filling flow information, and filling the form data into the current input control to be filled.
Specifically, after the form filling parameters and the first attribute information of the first control are set, a corresponding flow is called to execute corresponding filling action filling form data in the input control to be filled. The filling action refers to an action simulating a mouse click, an action simulating keyboard input, and the like.
If the second attribute information input by the user is matched with the first attribute information, filling form data in the corresponding input control. For example, as shown in fig. 6, the terminal device identifies that the first controls in the target form are "name", "age" and "remark", and the second attribute information in the first input of the user also includes controls of "name", "age" and "remark", so that the second attribute information is matched with the first attribute information, and if the form data in the first input is "Zhang san", "30" and "remark of the test form", the input controls of "name" in the target form are automatically filled with the remarks of the test form in the input controls of "30" and "remark" corresponding to "age", respectively.
Note that when form data is filled in each input control, the form data may be sequentially filled in the input controls according to a sequence, or form data may be simultaneously input in each input control, which is not limited herein.
The form filling method provided by the embodiment of the invention can automatically fill the form data in the input control based on the form data input by the user after the form filling parameters in the target form and the first attribute information of the first control are acquired.
In one possible implementation manner, the first controls are multiple, the first attribute information comprises a first identifier and a first sequence corresponding to each first control, and the second attribute information comprises a second identifier and a second sequence corresponding to each second control; according to the second sorting of each second control in the second attribute information, searching for a first identifier matched with the second identifier of the second control with the first sorting, and filling form data in the input control to be filled based on the form filling parameters, the first attribute information and the second attribute information under the condition that a first identifier matched with the second identifier with the first sorting exists in a plurality of first identifiers in the first attribute information, wherein the filling of the form data comprises the following steps: form data is filled in the input controls to be filled in based on form filling parameters of the input controls corresponding to the first identifications matched with the second identifications of the first identifications.
Searching for a first identifier matched with a second identifier of a second control for sorting the second in the case that the first identifier matched with the second identifier of the second control for sorting the first does not exist in the first identifiers of a plurality of first controls in the first attribute information, and filling form data in the input control to be filled in based on the form filling parameters, the first attribute information and the second attribute information in the case that the first identifier matched with the second identifier of the second control for sorting the second exists in the first identifiers of a plurality of first controls in the first attribute information: filling form data in the input controls to be filled in based on the form filling parameters of the input controls of the second control of the second sequence and the first identification of the first control of the second sequence; and so on until the second identification of each second control in the second attribute information is searched.
Specifically, the second identifier of the second control in the second attribute information in the first input of the user is sequentially matched with the first identifier of the first control in the first attribute information until the second identifiers in the second attribute information are matched with the first identifier in the first attribute information, and each input control can be filled in according to the filling sequence or simultaneously.
In one possible implementation manner, the form filling parameter further includes a filling order of all input controls, and the obtaining the input control to be filled currently according to the first attribute information and the second attribute information includes: and according to the first attribute information and the second attribute information, determining the input control with the first ordering as the input control to be filled currently in unfilled input controls according to the filling sequence.
Specifically, the current input control to be filled refers to an input control to be filled currently, and after a user sets or inputs the filling sequence of each input control in the target form, the first input control in the unfilled input control is ordered to be used as the current input control to be filled. It should be noted that the input controls may also be filled in simultaneously, and the embodiments of the application are not limited herein.
In one possible implementation, the form fill-in parameters further include: and (3) inputting an input time upper limit parameter of the control, and executing one of the following steps when the input time of the input control to be filled currently exceeds the input time upper limit parameter:
determining the next input control sequenced in the input control to be filled currently according to the filling sequence, and filling corresponding form data in the next input control; or stopping executing the filling actions of the input control to be filled currently and the input controls which are not filled yet.
The form fill-in parameters further include: and the time delay parameter is used for executing the filling action of the next input control sequenced on the input control to be filled currently after delaying for a preset time length based on the time delay parameter under the condition that the filling action of the input control to be filled currently is executed.
Specifically, as shown in fig. 7, UI elements, window indicators, timeout times, erroneous executions, delay times (ends), delay times (starts), input text, and the like are included in the setting page. Wherein, the user can preset the type (inputElement), timeout time, delay time, input text and the like of the input control by setting the UI element. Further, if the user sets the timeout time and sets the wrong execution, when the filling time of one input control exceeds the upper limit of the input time, whether the content in the input control is filled or not is determined according to the filling sequence, the next input control of the input control to be filled currently is ordered, the corresponding form data is filled in the next input control, and if the user sets the timeout time and sets the wrong execution, the filling actions of the input control to be filled currently and the rest input controls which are not filled yet are stopped.
Further, before the current input control starts to fill in the content, the preset time is delayed to restart filling in the content, and after the current input control finishes filling in, the filling action of the next input control sequenced in the input control to be filled in at present is delayed for the preset time to be executed again, so that the problem of data filling failure caused by too short response time is avoided.
It should be noted that, in the form filling method provided in the embodiment of the present application, the execution body may be a form filling device, or a control module in the form filling device for executing the form filling method. In the embodiment of the application, a form filling device is taken as an example to execute a form filling method, and the form filling device provided in the embodiment of the application is described.
Fig. 8 is a schematic structural view of a form filling apparatus according to an embodiment of the present invention. As shown in fig. 8, the form filling apparatus 800 includes: the first obtaining module 801 is configured to obtain, in response to a user selection operation of a target form in the client, a first control in the target form and an input control to be filled, where the first control corresponds to the input control to be filled; a second obtaining module 802, configured to obtain form filling parameters corresponding to an input control to be filled and first attribute information of a first control; a third obtaining module 803, configured to obtain second attribute information and form data in response to a first input of a user, where the second attribute information is matched with the first attribute information; and a filling module 804, configured to fill in form data in the input control to be filled in, based on the form filling parameter, the first attribute information and the second attribute information.
Through the technical scheme disclosed by the embodiment of the application, the form can be automatically filled, the workload of staff is reduced, and the form filling efficiency is improved.
In a possible implementation manner, the form filling parameter includes a control type of an input control, a filling action corresponding to the control type, and filling flow information of each type of input control, and the filling module 804 is further configured to obtain an input control to be filled currently according to the first attribute information and the second attribute information; acquiring the type of the input control to be filled currently, and calling filling flow information corresponding to the type of the input control to be filled currently; and executing corresponding filling actions in the current input control to be filled according to the filling flow information, and filling the form data into the current input control to be filled.
In a possible implementation manner, the form filling parameter further includes a filling order of all the input controls, and the filling module 804 is further configured to determine, according to the first attribute information and the second attribute information, that the input control ordered first is the input control to be filled currently in the unfilled input controls in sequence according to the filling order.
In one possible implementation, the form fill-in parameters further include: the filling module 804 is further configured to determine, according to a filling order, a next input control ordered in the input control to be filled in currently, and fill corresponding form data in the next input control, where the input time of the input control to be filled in currently exceeds the input time upper limit parameter; or stopping executing the filling actions of the input control to be filled currently and the input controls which are not filled yet.
In one possible implementation, the form fill-in parameters further include: and the time delay parameter is used for executing the filling action of the next input control sequenced on the input control to be filled currently after delaying for a preset time length based on the time delay parameter under the condition that the filling action of the input control to be filled currently is executed.
In one possible implementation manner, the first controls are multiple, the first attribute information comprises a first identifier and a first sequence corresponding to each first control, and the second attribute information comprises a second identifier and a second sequence corresponding to each second control; according to the second ranking of each second control in the second attribute information, searching for a first identifier matched with the second identifier of the second control ranked first, and if a first identifier matched with the second identifier ranked first exists in the plurality of first identifiers in the first attribute information, filling in the module 804, the module is further configured to: filling form data in the input controls to be filled in based on form filling parameters of the input controls corresponding to the first identifications matched with the second identifications of the first identifications; if there is no first identifier matching with the second identifier of the second control for sorting the first, searching for a first identifier matching with the second identifier of the second control for sorting the second, and if there is a first identifier matching with the second identifier of the second control for sorting the second, filling module 804 is further configured to: filling form data in the input controls to be filled in based on the form filling parameters of the input controls of the second control of the second sequence and the first identification of the first control of the second sequence; and so on until the second identification of each second control in the second attribute information is searched.
The form filling device 800 in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The form filling device 800 in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
The form filling device 800 provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and in order to avoid repetition, a description is omitted here.
Optionally, as shown in fig. 9, the embodiment of the present application further provides an electronic device 900, including a processor 901, a memory 902, and a program or an instruction stored in the memory 902 and capable of running on the processor 901, where the program or the instruction implements each process of the foregoing form filling method embodiment when executed by the processor 901, and the process can achieve the same technical effect, and for avoiding repetition, a description is omitted herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
The present embodiment can implement each process of the form filling method embodiment, and can achieve the same technical effects, and in order to avoid repetition, a detailed description is omitted here.
The embodiment of the application also provides a readable storage medium, and the readable storage medium stores a program or an instruction, which when executed by a processor, implements each process of the form filling method embodiment, and can achieve the same technical effects, so that repetition is avoided, and no further description is provided herein.
The processor is a processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic or optical disks, and the like.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running a program or instructions, each process of the embodiment of the form filling method can be realized, the same technical effect can be achieved, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), including several instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method of the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.
Claims (8)
1. A form filling method, comprising:
responding to the selection operation of a user on a target form in a client, and acquiring a first control and an input control to be filled in the target form, wherein the first control corresponds to the input control to be filled in;
acquiring form filling parameters corresponding to the input controls to be filled in and first attribute information of the first controls;
responding to a first input of a user, acquiring second attribute information and form data, wherein the second attribute information is matched with the first attribute information;
filling form data in the input control to be filled based on the form filling parameters, the first attribute information and the second attribute information;
the form filling parameters include a control type of the input control, a filling action corresponding to the control type, and filling flow information of each type of input control, and filling form data in the input control to be filled based on the form filling parameters, the first attribute information and the second attribute information includes:
acquiring an input control to be filled currently according to the first attribute information and the second attribute information;
acquiring the type of the input control to be filled currently, and calling filling flow information corresponding to the type of the input control to be filled currently;
executing corresponding filling actions in the current input control to be filled according to the filling flow information, and filling the form data into the current input control to be filled;
after setting form filling parameters and first attribute information of a first control, invoking a corresponding flow to execute corresponding filling action filling form data in an input control to be filled; if the second attribute information input by the user is matched with the first attribute information, filling form data in the corresponding input control.
2. The form filling method according to claim 1, wherein the form filling parameters further include filling orders of all input controls, and the obtaining the input control to be filled currently according to the first attribute information and the second attribute information includes:
and according to the first attribute information and the second attribute information, determining the input control with the first ordering as the input control to be filled currently in unfilled input controls according to the filling sequence.
3. The form filling method according to claim 2, wherein the form filling parameters further include: and when the input time of the input control to be filled exceeds the input time upper limit parameter, after filling the form data in the input control to be filled based on the form filling parameter, the first attribute information and the second attribute information, the method further comprises:
determining a next input control sequenced in the input control to be filled currently according to the filling sequence, and filling corresponding form data in the next input control;
or stopping executing the filling actions of the input control to be filled currently and the input controls which are not filled yet.
4. The form filling method according to claim 1, wherein the form filling parameters further include: and the time delay parameter is used for executing the filling action of the next input control sequenced in the current input control to be filled after delaying for a preset time length based on the time delay parameter under the condition that the filling action of the current input control to be filled is executed.
5. The form filling method according to claim 1, wherein the first controls are plural, the first attribute information includes a first identifier and a first order corresponding to each of the first controls, and the second attribute information includes a second identifier and a second order corresponding to each of the second controls;
according to the second order of each second control in the second attribute information, searching for a first identifier matched with a second identifier of a first second control in the order, and filling form data in the input control to be filled based on the form filling parameters, the first attribute information and the second attribute information when a first identifier matched with the first identifier in the order exists in a plurality of first identifiers in the first attribute information, wherein the filling of the form data comprises:
filling form data in the input controls to be filled in based on form filling parameters of the input controls corresponding to the first identification matched with the second identification of the first ordering;
searching for a first identifier matched with a second identifier of a second control of a second order under the condition that the first identifier matched with the second identifier of the second control of the first order does not exist in the first identifiers of a plurality of first controls in the first attribute information, and filling form data in the input control to be filled under the condition that the first identifier matched with the second identifier of the second control of the second order exists in the first identifiers of the plurality of first controls in the first attribute information, wherein the filling form data comprises:
filling form data in the input control to be filled in based on the form filling parameters of the input control of the second sequence and the first identification of the first control of the second sequence; and so on until the second identification of each second control in the second attribute information is searched.
6. A form filling apparatus, comprising:
the first acquisition module is used for responding to the selection operation of a user on a target form in the client, acquiring a first control and an input control to be filled in the target form, wherein the first control corresponds to the input control to be filled in;
the second acquisition module is used for acquiring form filling parameters corresponding to the input controls to be filled in and first attribute information of the first controls;
the third acquisition module is used for responding to the first input of the user and acquiring second attribute information and form data, wherein the second attribute information is matched with the first attribute information;
the filling module is used for filling form data in the input control to be filled based on the form filling parameters, the first attribute information and the second attribute information;
the form filling parameters comprise the control types of the input controls, filling actions corresponding to the control types and filling flow information of the input controls of each type, and the filling module is further used for acquiring the input controls to be filled currently; acquiring the type of the input control to be filled currently, and calling filling flow information corresponding to the type of the input control to be filled currently;
executing corresponding filling actions in the current input control to be filled according to the filling flow information, and filling the form data into the current input control to be filled;
after setting form filling parameters and first attribute information of a first control, invoking a corresponding flow to execute corresponding filling action filling form data in an input control to be filled; if the second attribute information input by the user is matched with the first attribute information, filling form data in the corresponding input control.
7. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which program or instruction when executed by the processor implements the steps of the method of any of claims 1-5.
8. A readable storage medium having stored thereon a program or instructions which when executed by a processor performs the steps of the method according to any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111492419.XA CN114385054B (en) | 2021-12-08 | 2021-12-08 | Form filling method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111492419.XA CN114385054B (en) | 2021-12-08 | 2021-12-08 | Form filling method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114385054A CN114385054A (en) | 2022-04-22 |
CN114385054B true CN114385054B (en) | 2023-12-19 |
Family
ID=81196061
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111492419.XA Active CN114385054B (en) | 2021-12-08 | 2021-12-08 | Form filling method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114385054B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107357772A (en) * | 2017-07-04 | 2017-11-17 | 贵州小爱机器人科技有限公司 | List filling method, device and computer equipment |
CN110188306A (en) * | 2019-05-30 | 2019-08-30 | 深圳前海微众银行股份有限公司 | A kind of method and device of web form Auto-writing |
CN110609836A (en) * | 2019-08-21 | 2019-12-24 | 杭州数梦工场科技有限公司 | Form processing method and device, electronic equipment and storage medium |
CN110837501A (en) * | 2019-10-15 | 2020-02-25 | 深圳市中博科创信息技术有限公司 | User-defined form system, form manufacturing method and storage medium |
CN111079392A (en) * | 2019-12-31 | 2020-04-28 | 中国银行股份有限公司 | Automatic filling method and device for webpage form, storage medium and electronic equipment |
CN111126009A (en) * | 2019-12-12 | 2020-05-08 | 深圳追一科技有限公司 | Form filling method and device, terminal equipment and storage medium |
CN112883696A (en) * | 2021-02-03 | 2021-06-01 | 维沃移动通信有限公司 | Form filling method, form sharing method, device, equipment and storage medium |
CN113076728A (en) * | 2021-03-12 | 2021-07-06 | 武汉木仓科技股份有限公司 | Data filling method of dialog box and related equipment |
CN113408254A (en) * | 2021-05-18 | 2021-09-17 | 支付宝(杭州)信息技术有限公司 | Page form information filling method, device, equipment and readable medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10223344B2 (en) * | 2015-01-26 | 2019-03-05 | Adobe Inc. | Recognition and population of form fields in an electronic document |
US10740547B2 (en) * | 2015-10-27 | 2020-08-11 | Allscripts Software, Llc | Managing data relationships of customizable forms |
-
2021
- 2021-12-08 CN CN202111492419.XA patent/CN114385054B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107357772A (en) * | 2017-07-04 | 2017-11-17 | 贵州小爱机器人科技有限公司 | List filling method, device and computer equipment |
CN110188306A (en) * | 2019-05-30 | 2019-08-30 | 深圳前海微众银行股份有限公司 | A kind of method and device of web form Auto-writing |
CN110609836A (en) * | 2019-08-21 | 2019-12-24 | 杭州数梦工场科技有限公司 | Form processing method and device, electronic equipment and storage medium |
CN110837501A (en) * | 2019-10-15 | 2020-02-25 | 深圳市中博科创信息技术有限公司 | User-defined form system, form manufacturing method and storage medium |
CN111126009A (en) * | 2019-12-12 | 2020-05-08 | 深圳追一科技有限公司 | Form filling method and device, terminal equipment and storage medium |
CN111079392A (en) * | 2019-12-31 | 2020-04-28 | 中国银行股份有限公司 | Automatic filling method and device for webpage form, storage medium and electronic equipment |
CN112883696A (en) * | 2021-02-03 | 2021-06-01 | 维沃移动通信有限公司 | Form filling method, form sharing method, device, equipment and storage medium |
CN113076728A (en) * | 2021-03-12 | 2021-07-06 | 武汉木仓科技股份有限公司 | Data filling method of dialog box and related equipment |
CN113408254A (en) * | 2021-05-18 | 2021-09-17 | 支付宝(杭州)信息技术有限公司 | Page form information filling method, device, equipment and readable medium |
Also Published As
Publication number | Publication date |
---|---|
CN114385054A (en) | 2022-04-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110221872B (en) | Page jump method and device, electronic equipment and storage medium | |
CN111552633A (en) | Interface abnormal call testing method and device, computer equipment and storage medium | |
CN111538659B (en) | Interface testing method, system, electronic equipment and storage medium of business scene | |
CN110187880B (en) | Method and device for identifying similar elements and computing equipment | |
CN102135895B (en) | System upgrading method and system | |
EP3848824A1 (en) | Landing page processing method, apparatus, device and medium | |
CN107480117B (en) | Recovery method and device for automatic page table single data | |
CN107807841B (en) | Server simulation method, device, equipment and readable storage medium | |
US20150169152A1 (en) | Automatically recovering and maintaining focus | |
CN109062807B (en) | Method and device for testing application program, storage medium and electronic device | |
CN112395182A (en) | Automatic testing method, device, equipment and computer readable storage medium | |
CN108319474B (en) | Page information generation method, device and equipment | |
CN110489698B (en) | System and method for automatically collecting webpage data | |
CN107102937B (en) | User interface testing method and device | |
KR102205686B1 (en) | Method and apparatus for ranking candiate character and method and device for inputting character | |
CN114385054B (en) | Form filling method and device, electronic equipment and storage medium | |
CN115062589B (en) | Encyclopedia entry processing method, encyclopedia entry processing device, electronic equipment, medium and program product | |
CN111127601A (en) | Animation switching method and device, electronic equipment and storage medium | |
CN115469849B (en) | Service processing system, method, electronic equipment and storage medium | |
CN116150517A (en) | Page processing method and device, electronic equipment and medium | |
CN114490323A (en) | Terminal device testing method and device and electronic device | |
CN110221952B (en) | Service data processing method and device and service data processing system | |
CN116225286A (en) | Page jump control method, operating system, electronic device and storage medium | |
CN113868531A (en) | Information acquisition method and device, electronic device and medium | |
CN112417324A (en) | Chrome-based URL (Uniform resource locator) interception method and device and computer equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |