Jump to content

How to have conditional fields in a form block?

Recommended Posts

Posted

I am trying to create a form where i can give radio button but if one is selected, the visitor has to input another field as mandatory; that is one field is linked to another.

For example:
Where did you hear about us?

  1. Website
  2. Social Media
  3. Other

And if “Other” is selected, the visitor must fill a text box “If other, kindly specify”.

How can I achieve this? I am trying to make a form for my Squarespace website. I have made a Text Block with placeholder text saying – “if other, kindly specify” but I cannot make it mandatory as it would be unnecessary if someone selects “website”.

Please help any direction would be great.

Regards

  • 4 weeks later...
  • Replies 2
  • Views 13.9k
  • Created
  • Last Reply
Posted

Hi Rony - Just wondering if you managed to solve this? I'm trying to do something similar myself.

Posted

Rony I do not know if this can be done in SS with some code, but I have used Jotform for exactly this type of conditional functionality - the forms are easily embedded. check it out

Archived

This topic is now archived and is closed to further replies.

Guest
This topic is now closed to further replies.
×
×
  • 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.