I an trying to make a registration form picking values from a google sheet
Please view the Data in the Sheet link
First question is "Course" - Drop down from A2:A of the sheet
Sample form
Select your course ______________________ (drop down from A2:A in Sheet)
If Java is selected, (Java is found in Row 4 of sheet)
next questions will be picked from B4 to F4 of sheet. All text answers.
Do you like java
How will you use java
Is java good
Is java famous
Tell me about Java
If App Script is selected (it is found in Row 3 of sheet, questions will be from B3 to C3 of the sheet - only two questions - text box answers)
Why do you want apps script
How will you use app script
After completing these questions, there will be a few more questions like name, age and file upload (resume) to a google drive folder.
The response will go into a new row in another google sheet. Resume url will appear in a fixed column in the answer sheet.
The answers sheet will look like
TIMESTAMP-NAME-AGE-RESUME URL-COURSE-ANSWER1-ANSWER2-ANSWER3-ANSWER4-ANSWER5
I referred to a few helpful articles like
Populate HTML form from Google Sheets
How to Populate HTML Service Select Options from Range in Google Sheet?
Dependent Dropdown in HTML form
I was able to populate the first drop down. But, I am not able to reach the next section in the same HTML form, depending on the value selected in the first question.
If the data in sheet is changed (add/delete/edit), the form must change automatically.