DEV Community

Cover image for Firefox form auto-fill
Michal Bryxí
Michal Bryxí

Posted on

12

Firefox form auto-fill

Problem

One of the trivial, yet crucial UX issues I have with the Firefox web browser is that the other browsers do absolutely smashing job in auto-filling addresses.

Basically I just fill my address in once, the browser remembers and then I can select the remembered option in any web page and 90% of the form will be filled in correctly.

It sounds trivial, but filling in my physical address is surprisingly common workflow on contemporary web.

Research

I tried to follow the Automatically fill in your address on web forms in Firefox for Android from Mozilla, but mentioned settings options are not even available in my version (118.0b6).

After a bit of research I found out that Firefox/Features/Form Autofill contains the answer. Important: Since this article will inevitably go out of date, please refer to the linked official documentation for the correct way.

Solution

  1. In the address bar type in about:config and press enter.
  2. Search for extensions.formautofill.addresses
  3. extensions.formautofill.addresses.capture.enabled = true
  4. extensions.formautofill.addresses.capture.v2.enabled = true
    • Not exactly sure what is the difference between this and the previous one, but can't hurt?
  5. extensions.formautofill.addresses.supported = on
  6. extensions.formautofill.addresses.supportedCountries = US,CA,CH,CZ,GB
    • My country is Switzerland, therefore I added CH to this list. List of country codes follows the ISO 3166 aplha-2 code standard.
  7. Restart browser
  8. Now you should see in the Settings new item in Forms and Autofill

Forms and Autofill settings in Firefox

Now you can use try on websites like fill.dev to see if it works:

fill.dev website with Firefox autofill toolbar

Conclusion

Firefox can fill in addresses in forms and does it reasonably well even in countries that are not officially supported. One just need to know where/how to enable it in settings.


Image generated via Midjourney prompt: firefox as a delivery man --ar 16:9

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (1)

Collapse
 
miskkie profile image
Miskkie • Edited

Sadly couldn't get autofill to work, even with your guide.
Incredible this is even a thing. Why wouldn't autofill just be enabled to begin with....

edit: reinstalled firefox and did the steps again and it worked. Firefox is weird.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more