seattleyoga Posted January 11, 2017 Share Posted January 11, 2017 Is there a way to have the Squarespace's form have a numeric entry keypad (#0-9) when entering numbers on a mobile device? Instead of having the full keyboard, it would swap into a numeric entry keypad when clicking onto the phone number line. I've tried using the "Numbers" field too, and that doesn't work. Is there a custom html code that can be integrated into Squarespace to allow this? Link to comment
dimsk Posted June 28, 2018 Share Posted June 28, 2018 Hey This depends a bit what type of field you are using. For the usual phone number and number field, add this into the footer Code Injection <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script> $('.three-digits .field-element').attr("type", "number"); $('.number .field-element').attr("type", "number"); </script> Hope that helps someone! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.