Support » Plugin: Participants Database » Generate (or Hide) Fields Based on a Prev Field Value?

  • Resolved ColumbiaWebDev

    (@prfctgdess)


    First off, I just started using your plugin but I LOVE it so far!!

    My question is this – would there be a way to generate fields based on the value of a previous one? For ex, I have a field for the user to indicate the number of children they have. I also want to college the age and gender of each child. For now, I just have the number of children field set to be a max of, say, 7 kids, and fields for up to 7 ages/genders.

    How would I go about making the fields “hidden” if they don’t have that many kids? If they indicate they have, say, 3 children, could I then “hide” the fields for kids 4-7?

    Thanks! Keep up the great work!

    http://wordpress.org/extend/plugins/participants-database/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter ColumbiaWebDev

    (@prfctgdess)

    *Collect the age and gender – not college – silly fingers… 🙂

    Plugin Author xnau webdesign

    (@xnau)

    This kind of thing is best handled with Javascript. It is easy to include your own JS scripts if you use a custom template. This kind of functionality is pretty trivial for jQuery, but of course, you’ll need to know a bit about Javascript to get it done.

    Thread Starter ColumbiaWebDev

    (@prfctgdess)

    That’s what I suspected, but figured it didn’t hurt to ask 🙂 I’ll just add some Javascript. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Generate (or Hide) Fields Based on a Prev Field Value?’ is closed to new replies.