WebAIM - Web Accessibility In Mind

E-mail List Archives

Best method of hiding text based upon a answer.

for

From: Sean Murphy
Date: Feb 10, 2016 2:08AM


All,


My actual coding skills isn't at the level I want them to be. Thus why posting this question.

I want to have a series of questions from 1 to 20 for say. If a person answers yes on question 1. Then question 9 might be displayed and all the other questions from 2 to 8 are hidden. The aim of the questions is to finally show the person a list of links related to their responses.

Is this exercise best using JavaScript and hiding the information or using HTML forms. Assuming there is a hide tag which I haven't yet look for.

The 2nd question is there any tool that will take a HTMl form and convert it into a RTF or Word with the relevant formatting plus keeping the answers? This must be done via the web browser. EG: The person fills in the form and then the whole form plus labels are converted into the word doc.

Sean