Caresmetics Posted June 19, 2022 Share Posted June 19, 2022 Hi I want to change the phone field from 3+3+4 to 11 character one field. any advice ? Link to comment
paul2009 Posted June 19, 2022 Share Posted June 19, 2022 You cannot change the format of the phone field but you can use a Text field instead 🙂 Improve your online store with our extensions.About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links.Buy me a coffee Link to comment
zoxoxu Posted September 12, 2022 Share Posted September 12, 2022 You can also change the text field with a tel field and custom pattern, you can't change the type with squarespace but you can override it. Create a normal txt input on your form copy the id of the input field (through right click -> inspect) open the settings of the page then advanced paste the follow code and replace YOUR-ID with the ID you copied <script src="https://code.jquery.com/jquery-3.6.1.min.js" integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ=" crossorigin="anonymous"></script> <script> $( document ).ready(function() { $('#YOUR-ID').attr("type", "tel"); $('#YOUR-ID').attr("pattern", "[0-9]{11}"); }); </script> You can change the pattern to match what you prefer link Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment