• Resolved Bubbles

    (@ciaobellaz)


    I think the topic title pretty well says what I’m looking to do: I want to have fields (not readable; hidden is fine even) auto-populate based on a user’s selection from a different field’s drop-down list.

    So if user selects “Joe Red” from the Field One list choices Joe Red|John Green|Jane Blue, Field Two would auto-populate with JRed; user selects John Green, Field Two would auto-populate with JGreen; user selects Jane Blue, Field Two would auto populate JBlue.

    https://wordpress.org/plugins/participants-database/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author xnau webdesign

    (@xnau)

    This kind of thing is handled using Javascript. If you’ve got some Javascript skills, it’s not too hard to do. You’ll need to figure out the source for the data: can it be generated from the data supplied by the user, or does it need to be looked up from a predefined data set?

    In any case, the javascript can be added to the custom plugin template for your signup form.

    If you don’t know javascript, you’ll need to get some help with that, there isn’t any simple code I can provide here for what you’re asking for.

    Thread Starter Bubbles

    (@ciaobellaz)

    Thank you, so much, for taking the time to reply, xnau!

    I finally walked away from this project for a few hours yesterday, and I came to the realization that I can solve the problem by taking a different approach. Good thing, because JavaScript isn’t in my bag of tricks! 😉

    Your plugin is fabulous and has saved me a ton of time, so thank you for that! Thank you also for putting it out there for free, which enables us to test it without a monetary investment. Presuming my client approves my final product, we’ll be making a donation to keep it going. Oh — and I’ll be rating it, as well.

    Again, thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Auto populate one field based on user selection from another field?’ is closed to new replies.