Jump to content

Recommended Posts

Posted

Good day,

I want to source of an image based on the selection of a form.
I made a bunch of assets for all the possible different selections, as seen on the attached image.

When a change is made to the right a change must be made to the left image.

This leads me to the following questions:

  • How do I access the URL of all the images?
  • How do I now which radio button/text box is active?
  • How do I access the onclick or onmouseup etc events of the buttons within the form.

I have experience in JS, HTML and CSS I just do not understand fully how I can add custom code to squarespace?


 

Example.PNG

  • Replies 1
  • Views 612
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted
Quote

 

I just do not understand fully how I can add custom code to squarespace?

 

Please see Using code injection.

I don't have answers to your other questions at this time perhaps other will.

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.