Forums

Chronoform fills fields with data from previous entry in blank fields.

shahabpk 14 Jul, 2020
I have designed a multipage form for Create and Update data which will be loaded and saved back to the DB table. The form works as intended except the issue of autofill.
The first page of the form has a dropdown to select a name. The second page loads data of that person from DB and populates the fields.
Now the problem is that when multiple entries are done if the second entry form has some blank value in loaded fields, the field is automatically filled with values entered for the previous person.
How can I solve this problem? This problem leads to the inadvertent entry of wrong data by the user into the DB.


I checked all fields and ensured that autocomplete:off is mentioned in attribute column.
Even after disabling the browser autofill option, it still populates data from preceding entry.
GreyHead 14 Jul, 2020
Hi shahabpk,

If you are using the User Session to store data between the pages that will need to be cleared on final submission to stop it being carried forward to the next submission.

Bob
shahabpk 14 Jul, 2020
How do I know that whether I am using the user session data or not and if yes how to clear it ?
shahabpk 14 Jul, 2020
Hi GreyHead
After following your tips, I think I was able to solve the problem. I had a redirect action to the starting page after the save data action of the multi-page form for creating the next entry. I do think that this redirect action breaks the following actions and sessions might not have cleared probably. After I removed the redirect action no issue observed and I get clean fields for entry.

Scratched my head for more than 24 hours 🙄
This topic is locked and no more replies can be posted.