Jump to content

How do I separate code for more than one conditional logic question?

Recommended Posts

Site URL: https://evolutionboulders.com/careers

Hi everyone,

I have an application form I'm trying to streamline, as a few questions work best as conditional ones. I was able to get it working for one question, but I can't figure out how to create separate conditional questions (I'm flying by the seat of my pants and any online tutorials I can find, I am 100% not a web developer). I was able to get as far as hiding all the responses I wanted, but answering any trigger question just triggered ALL the conditional questions to activate. How do I separate the code to make sure each conditional question only triggers a unique set?  I know there are lots of sites that build a form for you, but we're trying to keep costs down as much as possible and don't want to take on extra monthly fees if we can help it.

Here's the code I have for hiding the "Additional Employment" questions unless you click "yes" to the conditional question. 


Thanks in advance you smart cookies!
















    display: none;









 $('#radio-18e4296e-e13a-457b-8932-228a675d468b input').click(function(){

    selection = $(this).val();


   if (selection == 'Yes') {






Link to comment
  • 2 weeks later...
  • Replies 1
  • Views 284
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hello! It looks like this line "  $('.form-item').show()" is actually showing all form items, when what you want to do is only show a select few (the ones that are hidden with CSS initially). You should modify this line to show those items only, and you should also add an else statement for if the no option is selected where you will hide those same items. Does that make sense?

Feel free to email me with any customization inquiries or questions you may have!

Free Squarespace Resources: DevTools Minicourse,  11-Step Guide to Improve Custom CSS, Free Product/Pricing Comparison Table Generator

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.