Jump to content

Is it possible to add a container or a class around a form block?

Recommended Posts

I am trying to use a code injection to allow for a form that uses conditional logic. I want to select multiple form field ids to hide specific fields from the form. However, when I try to set the display to none for those ids, the css is getting overriden by some website-wide css. Is it possible to put the form in a container so that I can select the ids within the container and keep the css from getting overriden?

Link to comment
37 minutes ago, rnichols19 said:

I am trying to use a code injection to allow for a form that uses conditional logic. I want to select multiple form field ids to hide specific fields from the form. However, when I try to set the display to none for those ids, the css is getting overriden by some website-wide css. Is it possible to put the form in a container so that I can select the ids within the container and keep the css from getting overriden?

Could you share your site url so we can have a look?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

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.