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
Solution paul2009 Posted June 19, 2022 Solution Share Posted June 19, 2022 You cannot change the format of the phone field but you can use a Text field instead 🙂 JeremyDVBoyd 1 About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥. Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links. Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional. 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
JeremyDVBoyd Posted February 7, 2023 Share Posted February 7, 2023 Hi Squarespace community, Does anyone know how to change the format of the Phone form field? The forms seems fixed to the attached format of: (###) ### ### Though here in Australia, mobile numbers are written as: #### ### ### or with country code included: (##) ### ### ### Can I change the field formats to suit Australia's standard? Thanks for your help 🙂 Link to comment
tuanphan Posted February 11, 2023 Share Posted February 11, 2023 On 2/8/2023 at 6:04 AM, JeremyDVBoyd said: Hi Squarespace community, Does anyone know how to change the format of the Phone form field? The forms seems fixed to the attached format of: (###) ### ### Though here in Australia, mobile numbers are written as: #### ### ### or with country code included: (##) ### ### ### Can I change the field formats to suit Australia's standard? Thanks for your help 🙂 If you haven't solved it yet, you can consider using Text Field instead.. JeremyDVBoyd 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) 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