Please how can I create a form that can contain different options for next form field according to user selection on previous | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please how can I create a form that can contain different options for next form field according to user selection on previous

e.g a form field where the first box contains (game, movie, food) then if user selects "game" next box loads (football, volleyball, basketball etc) options under game for user to select but if user selected "movie" next box loads (star wars, avengers, justice league etc) but if user selects food then options relating to food are made available to user to select from.

22nd Apr 2019, 4:31 PM
Oluwaseun Ogunlana B.
Oluwaseun Ogunlana B. - avatar
2 Answers
+ 4
You can do it with JS
22nd Apr 2019, 6:33 PM
Mawlood Fareq
Mawlood Fareq - avatar
0
how to do it is not on JavaScript tutorial here on sololearn, I'll appreciate an example on how do that with the if else statement
23rd Apr 2019, 5:47 AM
Oluwaseun Ogunlana B.
Oluwaseun Ogunlana B. - avatar