Guest Posted September 15, 2019 Share Posted September 15, 2019 Squarespace forms utilize three separate fields (or four, if country code is used) for telephone numbers. Unfortunately, this seems to prevent smartphones / personal computers from using their autofill feature to fill in the information automatically. It also necessitates tabbing at least twice to fill in the telephone number manually. I could replace the telephone number field with a text field to address the tabbing issue, but the autofill feature still wouldn't work. Is anything in the works to address this, or is there a workaround? Link to comment
paul2009 Posted September 15, 2019 Share Posted September 15, 2019 You're right, it's best to use a Text field instead of the fixed Phone field as it is too inflexible on a website that will be used worldwide. The field can be assigned the type attribute of "tel" to instruct browsers to offer autocomplete of a telephone number. This must be done by using JavaScript in the site injection area. FIrst you must identify the field on your form then add the attribute. phoneField=document.querySelector("some query string here"); phoneField.setAttribute ("type", "tel"); This is a simplified example to get you started. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
Guest Posted September 15, 2019 Share Posted September 15, 2019 Hi Paul2009, Thanks for this. I was able to replace the phone field with a text field, and it autofilled without my having to do a code injection, which is good because I don't know JavaScript! I tested the change with an Apple device; hopefully it works with other device types as well. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.