0

Someone please suggest the solution?

I want prefilled data in my custom form that user already entered in the signup form.

Thanks, Rashi

rashi
  • 125
  • 1
  • 14

1 Answers1

0

You could use the customer's local storage. Long story, thus you can check this blog for more information.

When we've got the customerData from the Magento_Customer/js/customer-data.js source, you can fill the form with it. $('#custom-form-username').val(customerData.get('name')); . I hope this will give you some directions.

Ole Pannier
  • 3,208
  • 9
  • 22
  • 33
arvie
  • 742
  • 1
  • 5
  • 9