PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

select box after drop down choice

  1. I have a unique request that I can't find any answer to on the forums. I want to be able to have some Checkboxes selected automatically after a user chooses a specific option from a Drop Down menu. I'm assuming that I would have to use ajax for this and I'm hoping that it wouldn't be too involved customizing the form for this functionality.

    My other option is to have the users enter the form through a link that populates these areas for the user automatically - but I know that there would be some users who would find the direct form link and bypass the pre-filled options.

    Any suggestions? (hopefully that post isn't too confusing)

    Posted 10 years ago on Saturday June 2, 2012 | Permalink
  2. OK, this post must be a little confusing to everyone, so here is an example of what I need to make happen for my gravity form......

    http://jsfiddle.net/yqzXZ/1/

    When you view the sample, you'll see that choosing option 3 from the drop down automatically checks the box and greys it out preventing the user from unchecking the box.

    Any suggestions on where to start? I couldn't make the code from the fiddle work on my site.

    Posted 10 years ago on Tuesday June 5, 2012 | Permalink
  3. Let me ask around and see if anyone on the team has any ideas for this one.

    Posted 10 years ago on Tuesday June 5, 2012 | Permalink
  4. Hi Matt,

    What issue were you running into when you attempting to implement that code on your site? You should be able to simply replace the IDs of the select and checkbox input with the IDs from your form. Could you attempt to implement and provide a link to your own implementation? I'll take a look and see what is not working. :)

    Posted 10 years ago on Tuesday June 5, 2012 | Permalink
  5. I tried it again, this time I turned off the "Enable enhanced user interface" feature of my drop down (I didn't need it anyway). And it's still not working. I'm getting a java error of "$("#input_3_21") is null".

    Here is the form url - http://www.maidonearth.com/cleaning-estimate

    Posted 10 years ago on Tuesday June 5, 2012 | Permalink
  6. Give this a shot:

    http://pastie.org/4039840

    Posted 10 years ago on Wednesday June 6, 2012 | Permalink
  7. Brilliant!! Worked like a charm! Thanks David.

    Posted 10 years ago on Wednesday June 6, 2012 | Permalink
  8. Dave is the man! Glad you got it working.

    Posted 10 years ago on Thursday June 7, 2012 | Permalink

This topic has been resolved and has been closed to new replies.