CN112860698B - Form processing method, form processing device, electronic equipment and computer readable storage medium - Google Patents

Form processing method, form processing device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN112860698B
CN112860698B CN202110192216.2A CN202110192216A CN112860698B CN 112860698 B CN112860698 B CN 112860698B CN 202110192216 A CN202110192216 A CN 202110192216A CN 112860698 B CN112860698 B CN 112860698B
Authority
CN
China
Prior art keywords
page
current page
information
cache
user input
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
Application number
CN202110192216.2A
Other languages
Chinese (zh)
Other versions
CN112860698A (en
Inventor
吴亚浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202110192216.2A priority Critical patent/CN112860698B/en
Publication of CN112860698A publication Critical patent/CN112860698A/en
Application granted granted Critical
Publication of CN112860698B publication Critical patent/CN112860698B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present disclosure relates to a form processing method, apparatus, electronic device, and computer-readable storage medium. And acquiring user input information filled in a form field of the current page by receiving a first operation of entering a next page of the current page, triggered by a user, determining that the user input information is consistent with the input cache information of the form field of the current page in the local cache, and displaying the next page of the current page. The transmission resources consumed by transmitting the data to the server are reduced, the occupation of the processing resources of the server is reduced, the local storage operation does not need to be executed for multiple times, and the occupation of the processing resources is reduced.

Description

Form processing method, form processing device, electronic equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a form processing method, an apparatus, an electronic device, and a computer readable storage medium.
Background
With the rapid development of computer technology, data collection through forms has become a common way to collect entry information, for example, through forms.
In the prior art, a form corresponding to a one-time collection task is divided into a plurality of pages, each page is provided with a plurality of buttons, and the pages are switched and information interaction with a server is carried out through the buttons. For example, the first page will typically set a "next button", the last page will typically set a "finish button" and a "last button", and the remaining pages will typically set a "last button" and a "next button". In the process of filling in a form by a user, the user selects a next button displayed on the current page every time, a webpage (web) end sends a storage request to a server, the storage request contains input information of the current page, the input information of the current page refers to content input by the user, and the server stores the input information of the current page. Correspondingly, after the user selects the last button each time, the webpage end sends a data request to the server, the server returns the input information of the last page to the webpage end, and the webpage end displays the last page. After the user selects the 'finish button', the webpage end sends a submitting request to the server, the submitting request comprises the input information of the current page, the server stores the input information of the current page, and the input information of all pages is fused.
However, with the prior art method, the resource consumption of the server is relatively large.
Disclosure of Invention
In order to solve the technical problems, the present disclosure provides a form processing method, a form processing device, an electronic device and a computer readable storage medium.
In a first aspect, the present disclosure provides a method for processing a form, where the form includes at least two pages, the method includes:
receiving a first operation of entering a next page of a current page, which is triggered by a user, and acquiring user input information filled in a form field of the current page;
and determining that the user input information is consistent with the input cache information of the form field of the current page in the local cache, and displaying the next page of the current page.
Optionally, the method further comprises:
Determining that the user input information is inconsistent with the input cache information of the form domain of the current page in the local cache, and updating the content of the input cache information in the form domain of the current page to the content of the user input information; and displaying the next page of the current page.
Optionally, the method further comprises:
receiving a second operation of entering a last page of the current page, which is triggered by a user, and acquiring input cache information of a form field of the last page of the current page from a local cache;
And displaying the last page of the current page, and filling the content of the input cache information in the form field of the last page.
Optionally, the method further comprises:
Receiving a third operation of submitting a form triggered by a user in the current page, and acquiring user input information filled in a form field of the current page;
fusing the user input information filled in the form fields of the current page with the input cache information of the form fields of other pages stored in the local cache to obtain form data;
and sending the submitting request to a server, wherein the submitting request contains the form data.
Optionally, the displaying the next page of the current page includes:
If the input cache information of the form field of the next page of the current page is stored in the local cache, displaying the next page of the current page, and filling the content of the input cache information in the form field of the next page;
and if the input cache information of the form field of the next page of the current page is not stored in the local cache, displaying the next page of the current page, wherein the content filled in the form field of the next page is empty.
Optionally, in the case that the user input information is determined to be inconsistent with the input cache information of the form field of the current page in the local cache, the method further includes:
and sending a data request to a server, wherein the data request comprises user input information filled in a form field of the current page.
Optionally, the method further comprises:
And determining the index of the page through a page management function, and storing the index of the current page into a local cache, wherein the index is used for coding and distinguishing the pages in the form.
In a second aspect, the present disclosure provides a processing apparatus for a form, the form including at least two pages, the apparatus comprising:
The receiving module is used for receiving a first operation of entering a next page of a current page, which is triggered by a user, and acquiring user input information filled in a form field of the current page;
the processing module is used for determining that the user input information is consistent with the input cache information of the form field of the current page in the local cache;
And the display module is used for displaying the next page of the current page.
Optionally, the processing module is further configured to:
And determining that the user input information is inconsistent with the input cache information of the form field of the current page in the local cache.
And the updating module is used for updating the content of the input cache information in the form domain of the current page into the content of the user input information.
Optionally, the receiving module is further configured to: receiving a second operation of entering a last page of the current page, which is triggered by a user, and acquiring input cache information of a form field of the last page of the current page from a local cache;
the display module is further configured to: and displaying the last page of the current page, wherein the form field of the last page displays the content of the input cache information.
Optionally, the receiving module is further configured to: receiving a third operation of submitting a form triggered by a user in the current page, and acquiring user input information filled in a form field of the current page;
The apparatus further comprises:
The fusion module is used for fusing the user input information filled in the form domain of the current page with the input cache information of the form domains of other pages stored in the local cache to obtain form data;
and the sending module is used for sending the submitting request to a server, wherein the submitting request contains the form data.
Optionally, the display module is specifically configured to:
If the input cache information of the form field of the next page of the current page is stored in the local cache, displaying the next page of the current page, and filling the content of the input cache information in the form field of the next page;
and if the input cache information of the form field of the next page of the current page is not stored in the local cache, displaying the next page of the current page, wherein the content filled in the form field of the next page is empty.
Optionally, the sending module is further configured to:
And under the condition that the user input information is inconsistent with the input cache information of the form field of the current page in the local cache, sending a data request to a server, wherein the data request contains the user input information filled in the form field of the current page.
Optionally, the apparatus further includes:
The index module is used for determining the index of the page through the page management function and storing the index of the current page into the local cache, and the index is used for coding and distinguishing the pages in the form.
In a third aspect, the present disclosure provides an electronic device comprising: a processor for executing a computer program stored in a memory, which when executed by the processor carries out the steps of the method as described in the first aspect above.
In a fourth aspect, the present disclosure provides a computer readable storage medium having stored thereon a computer program which, when executed by a first processor, implements the steps of the method as described in the first aspect above.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages:
The method comprises the steps that user input information filled in a form field of a current page is obtained through receiving first operation of entering the next page of the current page, the user input information is stored as local input cache information, when the user input information is received, the user input information can be directly compared with the input cache information in a local cache, transmission resources consumed by data transmission to a server are reduced, occupation of processing resources of the server is reduced, and if the user input information is consistent with the input cache information of the form field of the current page in the local cache, the next page of the current page is directly displayed, the storage operation is not needed to be executed for a plurality of times locally, and occupation of the processing resources is reduced.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments of the present disclosure or the solutions in the prior art, the drawings that are required for the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a framework of a form processing system provided by the present disclosure;
FIG. 2A is a schematic illustration of a form provided by the present disclosure;
FIG. 2B is a schematic illustration of another form provided by the present disclosure;
FIG. 2C is a schematic illustration of yet another form provided by the present disclosure;
FIG. 2D is a schematic illustration of yet another form provided by the present disclosure;
FIG. 3 is a flow chart of a method of processing a form provided by the present disclosure;
FIG. 4 is a flow chart of another form processing method provided by the present disclosure;
FIG. 5 is a flow chart of a method of processing a further form provided by the present disclosure;
Fig. 6 is a schematic structural diagram of a form processing device according to an embodiment of the present disclosure;
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, a further description of aspects of the present disclosure will be provided below. It should be noted that, without conflict, the embodiments of the present disclosure and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced otherwise than as described herein; it will be apparent that the embodiments in the specification are only some, but not all, embodiments of the disclosure.
The data collection may be implemented by means of a form, for example, by collecting entry information through the form, or registering user information of the account.
Fig. 1 is a schematic diagram of a framework of a form processing system provided in the present disclosure, where, as shown in fig. 1, the form processing system includes: the electronic device 101 and the server 102, where the electronic device 101 and the server 102 communicate through a network, and the server 102 may be one physical server or may be multiple physical servers, and the multiple physical servers may be distributed in the same physical location or may be distributed in different physical locations. The electronic device 101 may be one or more electronic devices 101, and the electronic device 101 may be an electronic device 101 with a webpage data access function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a wearable device, a smart home, a head-mounted device, and the like. The electronic equipment acquires a form opening request input by a user and sends a form data acquisition request to the server, wherein form data is blank form, namely, a form domain of the form is empty, the server sends the corresponding form data to the electronic equipment, the electronic equipment displays the form data, the user can input corresponding information in the form domain of the form data, and the electronic equipment sends the information input by the user to the server for storage.
The form opening request may be various forms of instructions. The form opening request may be a website input by the electronic device in the browser, a web page opened by scanning a two-dimensional code for the electronic device, a single click or double click of an information collection button in the web page, etc., and it is understood that the form opening request is not limited to the above-mentioned form, but may be other predefined forms. The form opening request can be in various forms, so that a user can conveniently select the form according to actual needs.
The electronic equipment can display form information in a plurality of pages, each page is provided with a plurality of buttons, and the switching of the pages and the triggering of the information interaction with the server are carried out through the buttons. The first page may be provided with a "next" button, the last page may be provided with a "complete" button and a "last" button, and the remaining pages may be provided with a "last" button and a "next" button. The "next" button is used to indicate the next page to enter the current page, the "last" button is used to indicate the last page to enter the current page, and the "complete" button is used to indicate the submission of form data, which is the data entered by the user into the form field.
An application scenario of the present disclosure is described below by taking a procedure of collecting gateway information through a form as an example. The gateway information collection form is divided into 4 pages, fig. 2A is a schematic diagram of a form provided in the present disclosure, and as shown in fig. 2A, the form field 202 and the form field 203 are positions where the user inputs corresponding data, where the form field may be a text box (e.g., the form field 202), a multi-line text box, a password box, a hidden field, a check box, a menu box, a drop-down selection box (e.g., the form field 203), etc., where a password filled in by the user may not be directly displayed in the password box. For gathering user input information, i.e. data entered or selected by the user. When the user clicks the next button 201, the electronic device displays the form information of the next page, that is, the form information of the second page, and the next button 201 may be the "next" button shown in fig. 2A, the "next page" button, or other buttons, which is not limited in this disclosure. Fig. 2B is a schematic diagram of another form provided in the present disclosure, and as shown in fig. 2B, the second page of the gateway information collection form has a previous page button 204 in addition to a next page button, and when the user clicks the previous page button 204, the electronic device displays the previous page form information, and the button 204 for entering the previous page may be the "go back to previous" shown in fig. 2B, or may be the "go back to previous", "previous" or other buttons, which is not limited in this disclosure. Fig. 2C is a schematic diagram of still another form provided in the present disclosure, and fig. 2C is a third page of the gateway information collection form, where the page is neither the first page nor the last page, and thus has a next page button and a previous page button, and when the user clicks the next page button, the electronic device displays form information of the last page. Fig. 2D is a schematic diagram of yet another form provided in the present disclosure, and fig. 2D is a final page of the gateway information collection form, and when the user clicks the completion button 212, the electronic device submits the input information to the server. 212 may be "complete" as shown in fig. 2D, or may be "submit", or other form of button, without limitation to this disclosure.
Alternatively, a prompt may be displayed in the form field. For example, in FIG. 2C, the form field 209 may display "please enter a domain name," prompting the user where the form field is used to enter a domain name.
In the prior art, in the process of filling in a multi-page form by a user, the user selects a next button displayed on a current page each time, a webpage end sends a storage request to a server, the storage request contains user input information of the current page, the user input information of the current page refers to content input by the user, and the server stores the user input information of the current page. Correspondingly, after the user selects the last button each time, the webpage end sends a data request to the server, the server returns the input information of the last page to the webpage end, and the webpage end displays the last page. After the user selects the 'finish button', the webpage end sends a submitting request to the server, wherein the submitting request comprises user input information of the current page, the server stores the input information of the current page, and the input information of all pages is fused.
According to the form processing method, when the first operation of the next page of the current page is received each time, the user input information filled in the form field of the current page is acquired, the user input information is stored as the local input cache information, when the user input information is received, the user input information can be directly compared with the input cache information in the local cache, transmission resources consumed by data transmission to a server are reduced, the occupation of processing resources of the server is reduced, and if the user input information is consistent with the input cache information of the form field of the current page in the local cache, the next page of the current page is directly displayed, the storage operation is not needed to be executed for a plurality of times, and the occupation of processing resources is reduced.
The technical scheme of the present disclosure will be described in detail with several specific embodiments.
Fig. 3 is a flow chart of a form processing method provided in the present disclosure, as shown in fig. 3, the present embodiment may be executed by the electronic device shown in fig. 1, and the method of the present embodiment is as follows:
s301: and receiving a first operation of entering a next page of the current page, which is triggered by a user, and acquiring user input information filled in a form field of the current page.
The first operation may be various forms of instructions. The first operation may be a touch instruction, or a click instruction, or a double click instruction, or the like, received by the electronic device at a position of a button displayed on the current interface and used to indicate a next page to enter the current page. It will be appreciated that the first operation is not limited to the above-described form, but may be in other predefined forms. The first operation mode can be various, so that the user can conveniently select according to actual needs.
In this embodiment, a first operation triggered by a user to enter a next page of a current page is received, and the electronic device obtains user input information filled in a form field of the current page.
For example, in fig. 2A, the electronic device receives a first operation of the next button 201 by the user, and obtains user input information filled in the form field 202 and the form field 203.
S302: and judging whether the input information of the user is consistent with the input cache information of the form field of the current page in the local cache.
The input cache information of the form field of the current page is the input information of the form field, which is stored in the local cache and is acquired and stored before, for example, if the user fills the current page for the first time, the input cache information stored in the local cache is empty, and if the input cache information of the user is inconsistent with the input cache information of the form field of the current page in the local cache. For example, after the user fills out the first page, other pages are filled out, if the first page is returned to be filled out, the input cache information is stored in the local cache, and whether the input information of the user is consistent with the input cache information can be compared.
If the user input information is consistent with the input cache information of the form field of the current page in the local cache, S303 is continuously executed.
Optionally, if the user input information is inconsistent with the input cache information of the form field of the current page in the local cache, S304 is continuously executed.
S303: and displaying the next page of the current page.
The next page to the current page is obtained by the electronic device from the server. Alternatively, the electronic device may obtain all pages of the form from the server when the form is first opened. The electronic device may also obtain any page of the form from the server when the page is opened for the first time. The electronic device may also obtain any page of the form from the server each time that page is opened.
The next page of the current page can be displayed in a jump or popup mode, and the display mode is not limited in the disclosure.
In one possible implementation, the next page of the current page may be displayed directly, where the content filled in the form field in the next page of the current page is empty. The contents filled in the form field are empty, i.e. no user input information is displayed in the form field.
In another possible implementation, S303 may include the following steps 1, 2, and 3:
step 1: and judging whether the input cache information of the form field of the next page of the current page is stored in the local cache.
And if the input cache information of the form field of the next page of the current page is stored in the local cache, continuing to execute the step 2.
If the input cache information of the form field of the next page of the current page is not stored in the local cache, continuing to execute the step 3.
Step 2: and displaying the next page of the current page, and filling in the content of the input cache information in the form field of the next page.
If the next page of the current page contains a form field, filling all contents of the input cache information in the form field. If the next page of the current page contains a plurality of form fields, filling in the content of the corresponding input cache information in each form field.
Step 3: and displaying the next page of the current page, wherein the filling content in the form field of the next page is empty.
By determining that the input cache information of the form field of the next page of the current page is stored in the local cache, when the next page of the current page is displayed, the content of the input cache information can be filled in the form field of the next page, so that a user can know the information filled in before, the information filled in before is modified, the form field which is not required to be modified is not required to be filled in again, and user experience is improved.
S304: and updating the content of the input cache information in the form domain of the current page to the content of the user input information.
If the user input information is inconsistent with the input cache information of the form domain of the current page in the local cache, the user is informed of modifying the information of the form domain of the current page, so that the content of the input cache information of the form domain of the current page is updated to be the content of the user input information. The content of the input cache information in the form domain of the current page may be updated directly to the content of the user input information, or the content of the input cache information in the form domain where the input cache information is inconsistent with the user input information may be updated to the content of the corresponding user input information, and accordingly, the input cache information in the form domain where the input cache information is consistent with the user input information is not processed.
After S304, in a possible implementation, S304 is performed to continue S303. In the process of inputting data, the input data of the form fields of each page of the current form are stored locally, namely, the update storage is carried out locally under the condition that the input data is updated.
In another possible implementation manner, in the process of inputting data by a user, the input data of the form fields of each page of the current form are stored locally, and in the case that it is determined that the user input information is inconsistent with the input cache information of the form fields of the current page in the local cache, that is, when the input data is changed, a data request is sent to the server, where the data request includes the user input information filled in the form fields of the current page. And continues to S303.
By comparing whether the user input information is consistent with the input cache information of the form field of the current page in the local cache, the user input information is sent to the server only when the user input information is determined to be inconsistent with the input cache information of the form field of the current page in the local cache, and the user input information is not needed to be sent to the server when the user input information is consistent with the input cache information of the form field of the current page in the local cache, so that transmission resources consumed for transmitting data to the server are reduced, and resource consumption of the server is reduced.
In this embodiment, by receiving a first operation triggered by a user to enter a next page of a current page, user input information filled in a form field of the current page is obtained, it is determined that the user input information is consistent with input cache information of the form field of the current page in a local cache, and the next page of the current page is displayed. Therefore, when the first operation of the next button of the current page is received each time, the user input information filled in the form field of the current page is acquired, the user input information is stored as local input cache information, when the user input information is received, the user input information can be directly compared with the input cache information in the local cache, transmission resources consumed by data transmission to a server are reduced, the occupation of processing resources of the server is reduced, and if the user input information is consistent with the input cache information of the form field of the current page in the local cache, the next page of the current page is directly displayed, the storage operation is not needed to be executed for a plurality of times locally, and the occupation of the processing resources is reduced.
Fig. 4 is a flow chart of another form processing method provided in the present disclosure, and fig. 4 is a flowchart of another form processing method based on the embodiment shown in fig. 3, further, as shown in fig. 4, the method in this embodiment may further include S305.
S305: and receiving a second operation which is triggered by the user and enters the last page of the current page, and acquiring user input information filled in a form field of the current page.
The second operation may be various forms of instructions. The second operation may be a touch instruction, a single click instruction, a double click instruction, or the like, received by the electronic device at a position of a last button displayed on the current interface. It will be appreciated that the second operation is not limited to the above-described form, but may be in other predefined forms. The second operation mode can be various, so that the user can conveniently select according to actual needs.
In this embodiment, a second operation triggered by a user and entering a previous page of the current page is received, and the electronic device obtains user input information filled in a form field of the current page.
For example, in fig. 2B, the electronic device receives a second operation of the last button 204 triggered by the user, and obtains user input information of the form field 205 and the form field 206.
S306: and judging whether the user input information filled in the form field of the current page is consistent with the input cache information of the form field of the current page in the local cache.
If the user input information is consistent with the input cache information of the form field of the current page in the local cache, S307 is continuously executed.
If the user input information is inconsistent with the input cache information of the form field of the current page in the local cache, S308 is continuously executed.
S307: and displaying the last page of the current page.
In one possible implementation, the last page of the current page may be displayed directly, where the content filled in the form field in the last page of the current page is empty.
In another possible implementation, S307 may include the following steps a, b, and c:
step a: and judging whether the input cache information of the form field of the last page of the current page is stored in the local cache.
And if the input cache information of the form field of the last page of the current page is stored in the local cache, continuing to execute the step b.
And if the input cache information of the form field of the last page of the current page is not stored in the local cache, continuing to execute the step c.
Step b: and displaying the last page of the current page, and filling in the form field of the last page to input the content of the cache information.
Step c: and displaying the last page of the current page, wherein the content filled in the form field of the last page is empty.
The implementation principle and beneficial effects of the steps a-c are similar to those of the steps 1-3, and are not repeated here.
S308: and updating the content of the input cache information in the form domain of the current page to the content of the user input information.
S308 execution completion continues with S307.
The implementation principle and the beneficial effects of S306-S308 are similar to those of S302-S304, and are not repeated here.
It will be appreciated that the execution of S305-S308 and S301-S304 is not sequential, and that S305-S308 may be executed first, then S301-S304 may be executed second, or S301-S304 may be executed first, and then S305-S308 may be executed.
In this embodiment, through receiving a second operation triggered by a user and entering a previous page of the current page, user input information filled in a form field of the current page is obtained, it is determined that the user input information is consistent with input cache information of the form field of the current page in the local cache, and the previous page of the current page is displayed. Therefore, when the user input information is received, the user input information can be directly compared with the input cache information in the local cache, the occupation of processing resources of a server is reduced, the resource consumption caused by the comparison data of the server is reduced, and if the user input information is consistent with the input cache information of the form field of the current page in the local cache, the last page of the current page is directly displayed without executing the storage operation for multiple times.
Fig. 5 is a flow chart of a processing method of another form provided in the present disclosure, and fig. 5 is a flowchart of the embodiment shown in fig. 3 or fig. 4, further, as shown in fig. 5, the method of this embodiment may further include S309, S310, and S311.
S309: and receiving a third operation of submitting the form triggered by the user in the current page, and acquiring user input information filled in a form field of the current page.
Wherein a third operation of submitting the form is to instruct sending a commit request to the server. The form data of the form is contained in the submitting request, namely, the submitting request is used for sending the form data of the form to the server.
The third operation may be various forms of instructions. The third operation may be a touch instruction, a single click instruction, a double click instruction, or the like, received by the electronic device at a position of a completion button displayed on the current interface. It will be appreciated that the third operation is not limited to the above-described form, but may be in other predefined forms. The third operation mode can be various, so that the user can conveniently select according to actual needs.
In this embodiment, a third operation of submitting a form triggered by a user on a current page is received, and the electronic device obtains user input information filled in a form field of the current page.
For example, in fig. 2D, the electronic device receives the user input information filled in the current form field 213 and the form field 214 by the user through the third operation of the finish button 212.
S310: and fusing the user input information filled in the form fields of the current page with the input cache information of the form fields of other pages stored in the local cache to obtain form data.
For example, in fig. 2D, the user input information currently displayed in the form field 213 and the form field 214 is fused with the input buffer information of the form field 202 and the form field 203 of the first page shown in fig. 2A stored in the local buffer, the input buffer information of the form field 205 and the form field 206 of the second page shown in fig. 2B stored in the local buffer, and the input buffer information of the form field 208, the form field 209, the form field 210 and the form field 211 of the third page shown in fig. 2C stored in the local buffer, to obtain form data.
S311: and sending a submitting request to the server, wherein the submitting request contains the form data.
A commit request is sent to the server to cause the server to process the form data. Wherein processing the form data includes, but is not limited to: form data contained in the commit request is stored. The server may first verify the form data, etc., by storing the form data later.
Optionally, the server processes the form data, and after obtaining the processing result, the processing result may also be sent to the electronic device.
After the server processes the form data, the corresponding processing result can be sent to the electronic equipment. For example, if the form is user registration information, the server performs processing operation of user registration according to the form data, and sends information about whether the registration is successful to the electronic device, the electronic device may display information about whether the registration is successful according to the information about whether the registration is successful, if the registration is successful, information such as "registration is completed" or "you please complete the registration", and if the registration is failed, information such as "registration failure", "error in registration" or "registration failure" is occurred, and please retry later "may be displayed.
In this embodiment, the third operation of submitting the form triggered by the user in the current page is received, so as to obtain the user input information filled in the form field of the current page. And fusing the user input information filled in the form fields of the current page with the input cache information of the form fields of other pages stored in the local cache to obtain form data. And sending a submitting request to the server, wherein the submitting request contains the form data. When the form is completed, the electronic equipment performs fusion operation to obtain form data, and directly sends the form data to the server, so that the processing resources of the server are saved.
On the basis of the above embodiment, further, the method of the present disclosure may further include:
And determining the index of the page through a page management function, and storing the index of the current page into a local cache.
Wherein the index of the page is used for coding and distinguishing the page in the form.
The above page index (step index) is used to encode the pages in the form to distinguish different pages, and by the page index, it can be known what page is currently displayed, and the page index can be represented by numbers, letters or other forms. For example, if the index of the page is numbered from 1, when the first page shown in fig. 2A is displayed, the index of the current page is 1.
The page management function (step management function) can monitor the index of the current page, set the noodle highlight of the current page according to the index of the current page, and display the form information of the corresponding page. For example, as shown in FIG. 2B, page noodles 207 are used to indicate that the form has a total of 4 pages, and is currently the second page.
When a page is entered, the index of the page can be determined through the page management function, the background interface is requested to acquire the page corresponding to the index according to the index of the page, the obtained page is displayed, and the index is cached.
If a selection of the next button is received, the index of the page is incremented by one. The step management function is triggered to call the submitting function, after the user input information of the current page is submitted successfully, the index of the page is added by one, and the user input information is stored in the local cache. If not, adding one to the index of the page, and directly displaying the next page.
If a second operation of the last page of the current page triggered by the user is received, the index of the page is reduced by one, a data interface is not required at the moment, information in a cache is directly obtained according to the index, and if the form information under the current index does not exist in the cache, the information obtaining interface is called.
The index of the page is determined through the page management function, and the index of the current page is stored in the local cache, so that the currently displayed page is recorded, the maintenance of the page is facilitated, when the corresponding operation of entering the next page or the last page of the current page triggered by a user is received, the page to be displayed is rapidly determined according to the index of the page, and the page switching efficiency is improved.
Fig. 6 is a schematic structural diagram of a processing apparatus for a form according to an embodiment of the present disclosure, where, as shown in fig. 6, the form includes at least two pages, and the apparatus of this embodiment includes:
the receiving module 601 is configured to receive a first operation triggered by a user to enter a next page of a current page, and obtain user input information filled in a form field of the current page;
A processing module 602, configured to determine that the user input information is consistent with the input cache information of the form field of the current page in the local cache;
and the display module 603 is configured to display a page next to the current page.
Optionally, the processing module 602 is further configured to:
and determining that the user input information is inconsistent with the input cache information of the form field of the current page in the local cache.
And the updating module is used for updating the content of the input cache information in the form domain of the current page into the content of the user input information.
Optionally, the receiving module 601 is further configured to: receiving a second operation of entering the last page of the current page, which is triggered by a user, and acquiring the input cache information of the form field of the last page of the current page from a local cache;
the display module 603 is further configured to: and displaying the last page of the current page, and filling in the form field of the last page to input the content of the cache information.
Optionally, the receiving module 601 is further configured to: receiving a third operation of submitting a form triggered by a user in a current page, and acquiring user input information filled in a form field of the current page;
The apparatus further comprises:
the fusion module is used for fusing the user input information filled in the form domain of the current page with the input cache information of the form domains of other pages stored in the local cache to obtain form data;
And the sending module is used for sending a submitting request to the server, wherein the submitting request contains form data.
Optionally, the display module 603 is specifically configured to:
If the input cache information of the form field of the next page of the current page is stored in the local cache, displaying the next page of the current page, wherein the content of the input cache information is filled in the form field of the next page;
and if the input cache information of the form field of the next page of the current page is not stored in the local cache, displaying the next page of the current page, wherein the content filled in the form field of the next page is empty.
Optionally, the sending module is further configured to:
And under the condition that the user input information is inconsistent with the input cache information of the form field of the current page in the local cache, sending a data request to a server, wherein the data request contains the user input information filled in the form field of the current page.
Optionally, the apparatus further comprises:
The index module is used for determining the index of the page through the page management function, storing the index of the current page into the local cache, and carrying out coding distinction on the page in the form.
The device of the above embodiment may be used to implement the technical solution of the above method embodiment, and its implementation principle and technical effects are similar, and are not repeated here.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, as shown in fig. 7, where the electronic device in this embodiment includes:
A processor 701 for executing a computer program stored in a memory 702, which when executed by the processor 701 implements the steps of the method as shown in any of the above-mentioned figures 3-5.
The apparatus of the foregoing embodiment may be used to execute the technical solutions of the foregoing method embodiments, and implementation principles and technical effects are similar, and are not repeated herein.
The disclosed embodiments provide a computer readable storage medium having stored thereon a computer program which, when executed by a first processor, performs the steps of the method as shown in any of the above-described fig. 3-5.
The computer readable storage medium of the above embodiment may be used to implement the technical solution of the above method embodiment, and its implementation principle and technical effects are similar, and are not repeated here.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, 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 an element.
The above is merely a specific embodiment of the disclosure to enable one skilled in the art to understand or practice the disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A method of processing a form, the form comprising at least two pages, the method comprising:
receiving a first operation of entering a next page of a current page, which is triggered by a user, and acquiring user input information filled in a form field of the current page;
determining that the user input information is consistent with the input cache information of the form field of the current page in the local cache, and displaying the next page of the current page;
Determining that the user input information is inconsistent with the input cache information of the form domain of the current page in the local cache, and updating the content of the input cache information in the form domain of the current page to the content of the user input information;
Displaying the next page of the current page;
Receiving a third operation of submitting a form triggered by a user in the current page, and acquiring user input information filled in a form field of the current page;
fusing the user input information filled in the form fields of the current page with the input cache information of the form fields of other pages stored in the local cache to obtain form data;
and sending a submitting request to a server, wherein the submitting request contains the form data.
2. The method as recited in claim 1, further comprising:
receiving a second operation of entering a last page of the current page, which is triggered by a user, and acquiring input cache information of a form field of the last page of the current page from a local cache;
And displaying the last page of the current page, and filling the content of the input cache information in the form field of the last page.
3. The method of claim 1, wherein the displaying the next page to the current page comprises:
If the input cache information of the form field of the next page of the current page is stored in the local cache, displaying the next page of the current page, and filling the content of the input cache information in the form field of the next page;
and if the input cache information of the form field of the next page of the current page is not stored in the local cache, displaying the next page of the current page, wherein the content filled in the form field of the next page is empty.
4. The method of claim 1, wherein in the event that the user input information is determined to be inconsistent with the input cache information for the form field of the current page in the local cache, the method further comprises:
and sending a data request to a server, wherein the data request comprises user input information filled in a form field of the current page.
5. The method as recited in claim 1, further comprising:
And determining the index of the page through a page management function, and storing the index of the current page into a local cache, wherein the index is used for coding and distinguishing the pages in the form.
6. A form processing apparatus, wherein the form comprises at least two pages, the apparatus comprising:
The receiving module is used for receiving a first operation of entering a next page of a current page, which is triggered by a user, and acquiring user input information filled in a form field of the current page;
the processing module is used for determining whether the user input information is consistent with the input cache information of the form field of the current page in the local cache;
The updating module is used for updating the content of the input cache information in the form domain of the current page to the content of the user input information under the condition that the user input information is inconsistent with the input cache information in the form domain of the current page in the local cache;
the display module is used for displaying the next page of the current page under the condition that the user input information is consistent with the input cache information of the form field of the current page in the local cache or after the content of the input cache information in the form field of the current page is updated to the content of the user input information;
the receiving module is further configured to: receiving a third operation of submitting a form triggered by a user in the current page, and acquiring user input information filled in a form field of the current page;
The fusion module is used for fusing the user input information filled in the form domain of the current page with the input cache information of the form domains of other pages stored in the local cache to obtain form data;
And the sending module is used for sending a submitting request to the server, wherein the submitting request contains the form data.
7. An electronic device, comprising: a processor for executing a computer program stored in a memory, which when executed by the processor carries out the steps of the method according to any one of claims 1-5.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a first processor, implements the steps of the method of any of claims 1-5.
CN202110192216.2A 2021-02-19 Form processing method, form processing device, electronic equipment and computer readable storage medium Active CN112860698B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110192216.2A CN112860698B (en) 2021-02-19 Form processing method, form processing device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110192216.2A CN112860698B (en) 2021-02-19 Form processing method, form processing device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112860698A CN112860698A (en) 2021-05-28
CN112860698B true CN112860698B (en) 2024-07-02

Family

ID=

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127783A (en) * 2007-09-28 2008-02-20 北京金山软件有限公司 A website buffering method and device
CN108959487A (en) * 2018-06-22 2018-12-07 福建南威软件有限公司 A kind of page processing method based on the end H5

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127783A (en) * 2007-09-28 2008-02-20 北京金山软件有限公司 A website buffering method and device
CN108959487A (en) * 2018-06-22 2018-12-07 福建南威软件有限公司 A kind of page processing method based on the end H5

Similar Documents

Publication Publication Date Title
US11409640B2 (en) Machine learning based test case prediction and automation leveraging the HTML document object model
US9584504B2 (en) Auto login method and device
TW413764B (en) Method for generating display control information and computer
CA2734999C (en) New tab pages and bookmark toolbars in a browser
US7559016B1 (en) System and method for indicating web page modifications
CN109446459B (en) Page switching method and device, electronic equipment and storage medium
CN110221904B (en) Business process control method
CN108647141A (en) Automatic test approach, device, computer-readable medium and electronic equipment
US8650474B2 (en) Methods for web content optimization in single page display environments and systems thereof
US20150317171A1 (en) System and Methods for Loading an Application and its Modules in a Client Device
US10482150B1 (en) Electronic forms interaction framework for a consistent user experience
US8856809B2 (en) Controlling navigation of application logic using annotated application code
US20050198568A1 (en) Table display switching method, text data conversion program, and tag program
JP5612796B1 (en) Information processing apparatus, information processing method, and information processing program
CN112860698B (en) Form processing method, form processing device, electronic equipment and computer readable storage medium
CN105739717B (en) Data inputting method and device
EP3770838A1 (en) Data processing method based on nfc label, system and server thereof
JP7108382B2 (en) HELP SCREEN PRESENTATION SYSTEM, HELP SCREEN PRESENTATION METHOD AND HELP SCREEN PRESENTATION PROGRAM
CN112860698A (en) Form processing method and device, electronic equipment and computer-readable storage medium
CN101772196A (en) Method and system for processing message sent by mobile terminal and acting server
CN113971251A (en) Webpage output method, system and computer readable storage medium
CN110018766B (en) Webpage form filling method and device
CN110622135B (en) System and method for providing content items in situations involving suboptimal network conditions
CN104679786B (en) Form processing method and device
JP5001747B2 (en) Web page browsing device

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant