cancel
Showing results for 
Search instead for 
Did you mean: 

How to reset autofill from checkout page after loading page

SOLVED

How to reset autofill from checkout page after loading page

Hello All,

I just want to reset autofill from checkout page when page is loaded using jQuery in magento2

 

Problem solved? Click Kudos & Accept as Solution! 

Certified Magento 2 Developer
Vivek Singh
1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to reset autofill from checkout page after loading page

You can simply reset the form as given below.

 

jQuery(document).ready(function(){
	setTimeout(function(){
		jQuery('#form_id').trigger("reset");
	},1000);
});

I have set the timeout of 1 second so it can get the element properly on the checkout page.

If you find my answer useful, Please click Kudos & Accept as Solution.

View solution in original post

2 REPLIES 2

Re: How to reset autofill from checkout page after loading page

You can simply reset the form as given below.

 

jQuery(document).ready(function(){
	setTimeout(function(){
		jQuery('#form_id').trigger("reset");
	},1000);
});

I have set the timeout of 1 second so it can get the element properly on the checkout page.

If you find my answer useful, Please click Kudos & Accept as Solution.

Re: How to reset autofill from checkout page after loading page

No Great! as the loader can take more then 1000s to load and it won't work, I've had issue with this scenario when sometimes works sometimes don't that means increasing the timeout. Anyone knows a better proper magento option for this?