troubleshooting Question

Create a form that builds itself dynamically as the visitor proceeds (direct me to a good tutorial?) ...

Avatar of centerforward
centerforward asked on
6 Comments2 Solutions546 ViewsLast Modified:
What I want to do is present the visitor with the beginning of a magazine order form with a simple radio button question like, "Would you like to order a print issue, or a digital issue?"

If they choose print, then the page displays the rest of the form options and prices that relate to ordering print issues of the publication.

But if they choose digital, then the page displays the rest of the form options and prices that relate to ordering a digital issue.

The next correlating section of the form should just appear beneath the original first simple radio-button question, without the page refreshing, or the user submitting the form, etc.

Each form section has totally different fields, depending on what the visitor originally chose (print or digital), and what I'm trying to do is streamline the process rather than having a single convoluted form with too many options, half of which the visitor doesn't need.  I also want to avoid a multiple-page or multiple-step form process, since there aren't that many choices really, once I have some initial info.  And I don't want to start the whole process with separate links (for print or digital), I realize that'd be one way to do it, but I'll likely have additional form questions that should change next available form fields...

I'm comfortable building php forms with simple javascript validation that submit at the end to a mysql database.  But I'm old-school, and using some "old" techniques, and a total newbie to anything like ajax, jquery, drupal, etc.

All I wanted to do today was find a good tutorial where I can start learning jquery and ajax or drupal? and so forth, but I'd feel better if I knew what direction is best to go in (as far as self-teaching) in terms of what technology is best and most current for best accomplishing this.

I couldn't find a good tutorial because I can't figure out what to search on to research this specific goal because the search keywords are too generic ("dynamic" "form" "building" "changing" etc.).

I found a lot of interesting stuff.  But I specifically would like to accomplish a form that builds itself as the visitor makes initial choices, depending on what the visitor chooses (without any page refresh or submit or continuing to a second page).  I don't know what to call this, but surely I'm not the first to look for it!  

If anyone with experience with this can guide me towards a good tutorial to learn how to do it, or explain the components I need to learn, etc., that'd be awesome!!

Thanks so much in advance for your time and help,
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros