momo2000 Posted July 22 Share Posted July 22 Since May 2020, I had used the code below in "Code Injection" to default the State and Country fields, and then hide the Country fields for all of the forms on my site. But it seems that Squarespace had an update a few months ago that broke this. I'd like to know what I can do (code changes) to get that functionality back. Below is the code I used and source. <!--added by MOAKES 5/24/20 from https://forum.squarespace.com/topic/141931-autofill-country-field-in-form-on-index-page/#comment-183491 --> <script> Y.on("domready", function(){ Y.all('input[name="state"]').setAttribute("value", "GA"); Y.all('input[name="country"]').setAttribute("value", "USA"); }); </script> <style> .field.country { display: none; } </style> <!-- End MOAKES --> Link to comment
momo2000 Posted July 22 Author Share Posted July 22 One of the forms on the site is here: https://fullyfurnishedministries.org/donate-furniture1 Link to comment
tuanphan Posted July 24 Share Posted July 24 For these fields? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care 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