Jump to content

Auto Tab For Phone Number & Date Fields On Contact Form Block

Go to solution Solved by creedon,

Recommended Posts

Posted (edited)

Site URL: https://www.mmclassy.com/contact-us

Hey everyone!

I have a contact form block on a site that I'm working on. Currently, when you go to fill out the form, you have to manually switch between each box in the phone number and date field. Is there a way that I can make it so that it automatically switches to the next box once the current one is full?

Edited by shiDMV
  • shiDMV changed the title to Auto Tab For Phone Number & Date Fields On Contact Form Block
Posted

Hey everyone,

I've been troubleshooting the auto tab function for SQS and I'm facing the problem:

I can't find a way to get the auto tab code to work with items in separate divs.

I'm currently messing with the javascript in codepen (see here), but I just can't find a way to apply it to multiple divs.

I've had to reduce the phone & date fields to one div each to make the javascript work on codepen but I can't make these changes on squarespace since dev mode isn't available on 7.1 sites.

Does anyone know how to fix?

  • Solution
Posted

You may want to read the accepted answer in the following for an alternate perspective on auto tab.

https://stackoverflow.com/questions/14828435/auto-tab-to-the-next-fields-depending-upon-the-field-type

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.